MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / addRubyPath

Method addRubyPath

src/main/java/core/packetproxy/common/Utils.java:174–188  ·  view source on GitHub ↗
(String... args)

Source from the content-addressed store, hash-verified

172 }
173
174 private static String[] addRubyPath(String... args) {
175 List<String> cmd_array = new ArrayList<String>();
176 Utils.Platform os = Utils.checkOS();
177 if (os == Utils.Platform.MAC || os == Utils.Platform.LINUX) {
178
179 cmd_array.add("ruby");
180 }
181 for (String s : args) {
182
183 cmd_array.add(s);
184 // System.out.print(s+ " ");
185 }
186 // System.out.println("");
187 return cmd_array.toArray(new String[0]);
188 }
189
190 /**
191 * EXEを実行する。MACの場合はmonoで実行する

Callers 1

executeRubyMethod · 0.95

Calls 3

checkOSMethod · 0.95
addMethod · 0.45
toArrayMethod · 0.45

Tested by

no test coverage detected