merona 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/merona +17 -17
- metadata +1 -1
data/bin/merona
CHANGED
@@ -6,22 +6,22 @@ require 'FileUtils'
|
|
6
6
|
if ARGV.size < 2
|
7
7
|
puts "Usage"
|
8
8
|
puts " merona -command --parameter"
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
cmd = ARGV[0].downcase
|
9
|
+
else
|
10
|
+
cmd = ARGV[0].downcase
|
13
11
|
|
14
|
-
case cmd
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
12
|
+
case cmd
|
13
|
+
when "new"
|
14
|
+
path = Gem.bin_path("merona", "merona")
|
15
|
+
path.reverse!
|
16
|
+
path = path.split("/", 3)[2]
|
17
|
+
path.reverse!
|
18
|
+
path += "/frame"
|
19
|
+
|
20
|
+
FileUtils.cp_r path, ARGV[1]
|
21
|
+
when "delete"
|
22
|
+
FileUtils.rm_r ARGV[1]
|
23
|
+
when "run"
|
24
|
+
exec ARGV[1] + "/merona.bat"
|
25
|
+
end
|
27
26
|
end
|
27
|
+
|