fig2coreos 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/bin/fig2coreos +11 -12
- data/lib/fig2coreos.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a76ac0e62fd0adba35cad54a706584ef2ba1ed20
|
|
4
|
+
data.tar.gz: 5555233bfcf74dbb6eec72fc69abdf380d97c276
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2eb504aed6ac00e5d85992f3cd990d3574c1d359b923075184b91b7ee90120294af2bb3812facc1e88f44fc03a31a805c5e2c1be53fff1a5f82145313eea7602
|
|
7
|
+
data.tar.gz: 8c00a2cb33e4aa73984b9194edd92a76f1905c36c9aeaf3acd2f6c090f4c2a39bea1614ffc215a56456f03ba541b7d3d7a82711eff4b0766a9aea114c6a2eb82
|
data/bin/fig2coreos
CHANGED
|
@@ -6,35 +6,34 @@ FIG2COREOS_BANNER = "Usage: fig2coreos [options] APP_NAME FIG_YAML OUTPUT_DIRECT
|
|
|
6
6
|
|
|
7
7
|
options = {type: "fleet"}
|
|
8
8
|
|
|
9
|
-
OptionParser.new do |opts|
|
|
9
|
+
opt_parser = OptionParser.new do |opts|
|
|
10
10
|
opts.banner = FIG2COREOS_BANNER
|
|
11
11
|
|
|
12
|
-
opts.on("-t", "--type TYPE", "Output type:
|
|
12
|
+
opts.on("-t", "--type TYPE", "Output type: fleet (default) or vagrant (generate a Vagrantfile)") do |type|
|
|
13
13
|
options[:type] = type
|
|
14
14
|
end
|
|
15
|
-
end.parse!
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
opts.on( '-h', '--help', 'Display this screen' ) do
|
|
17
|
+
puts opts
|
|
18
|
+
exit
|
|
19
|
+
end
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
opt_parser.parse!
|
|
23
|
+
|
|
22
24
|
if ARGV[0].nil?
|
|
23
|
-
puts
|
|
24
|
-
puts FIG2COREOS_BANNER
|
|
25
|
+
puts opt_parser
|
|
25
26
|
exit -1
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
if !File.file?(File.expand_path(ARGV[1].to_s))
|
|
29
|
-
puts
|
|
30
|
-
puts FIG2COREOS_BANNER
|
|
30
|
+
puts opt_parser
|
|
31
31
|
exit -1
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
if !ARGV[2] || !File.directory?(File.expand_path(ARGV[2].to_s))
|
|
35
35
|
if !FileUtils.mkdir_p(File.join(ARGV[2].to_s, "media", "state", "units"))
|
|
36
|
-
puts
|
|
37
|
-
puts FIG2COREOS_BANNER
|
|
36
|
+
puts opt_parser
|
|
38
37
|
exit -1
|
|
39
38
|
end
|
|
40
39
|
end
|
data/lib/fig2coreos.rb
CHANGED