joyent-provisioner 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/provisioner/cli.rb +16 -0
- data/lib/provisioner/cli/bootstrap.rb +0 -13
- data/lib/provisioner/cli/provision.rb +0 -14
- data/lib/provisioner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 860b7897d55c42ced7dfd1fa360cc09765dd6cc3
|
4
|
+
data.tar.gz: 11e5c7ec4fdd921fa36650c60f80a0de78f5fa00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13adab230399a64dd9c48df3b4d6fafb986096a51f045cdf0599e95ce5ca8f04b33d245133c9bc17fc0574adf9309b5210a9d83e3dc616df289dccf1eff3962c
|
7
|
+
data.tar.gz: 7feeda2e8746b56d334cc946dc2e889648d41a32ad77f56e6b160bf9c737b2fdce09eb995da74f9553413a4b9bf8af3db7fe84af259d3f98cb3851c87261ddfb
|
data/lib/provisioner/cli.rb
CHANGED
@@ -69,6 +69,22 @@ module Provisioner
|
|
69
69
|
show_options: true,
|
70
70
|
exit: 0
|
71
71
|
end
|
72
|
+
|
73
|
+
subclass.class_eval do
|
74
|
+
def run(argv = ARGV)
|
75
|
+
parse_options argv
|
76
|
+
enable_logger if config[:debug]
|
77
|
+
|
78
|
+
if config[:dry]
|
79
|
+
provisioner_command.shell_commands.each do |command|
|
80
|
+
puts command
|
81
|
+
end
|
82
|
+
else
|
83
|
+
provisioner_command.run
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
end
|
72
88
|
end
|
73
89
|
end
|
74
90
|
|
@@ -18,19 +18,6 @@ class Provisioner::CLI::Bootstrap < Provisioner::CLI
|
|
18
18
|
boolean: false,
|
19
19
|
required: false
|
20
20
|
|
21
|
-
def run(argv = ARGV)
|
22
|
-
parse_options argv
|
23
|
-
enable_logger if config[:debug]
|
24
|
-
|
25
|
-
if config[:dry]
|
26
|
-
provisioner_command.shell_commands.each do |command|
|
27
|
-
puts command
|
28
|
-
end
|
29
|
-
else
|
30
|
-
provisioner_command.run
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
21
|
def provisioner_command
|
35
22
|
Provisioner::Command::Bootstrap.new(template_configuration.for_template(config[:template]), config)
|
36
23
|
end
|
@@ -2,22 +2,8 @@ require 'mixlib/cli'
|
|
2
2
|
require 'pry'
|
3
3
|
|
4
4
|
class Provisioner::CLI::Provision < Provisioner::CLI
|
5
|
-
|
6
5
|
banner 'Usage: provisioner provision --config <path-to-config>.yml [options] '
|
7
6
|
|
8
|
-
def run(argv = ARGV)
|
9
|
-
parse_options argv
|
10
|
-
enable_logger if config[:debug]
|
11
|
-
|
12
|
-
if config[:dry]
|
13
|
-
provisioner_command.shell_commands.each do |command|
|
14
|
-
puts command
|
15
|
-
end
|
16
|
-
else
|
17
|
-
provisioner_command.run
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
7
|
def provisioner_command
|
22
8
|
Provisioner::Command::Provision.new(template_configuration.for_template(config[:template]), config)
|
23
9
|
end
|
data/lib/provisioner/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: joyent-provisioner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Gredeskoul
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-01-
|
13
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mixlib-cli
|