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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33d28c32418f1e5abbc65a54d0242185a094ba58
4
- data.tar.gz: 933399339375a8492b5980f8f14a1966f1870338
3
+ metadata.gz: 860b7897d55c42ced7dfd1fa360cc09765dd6cc3
4
+ data.tar.gz: 11e5c7ec4fdd921fa36650c60f80a0de78f5fa00
5
5
  SHA512:
6
- metadata.gz: 0a2a605f1fdaa06960e82747a1451c6aa8b72b4d76246b29e1bc160f085b5b57d2b338c76c8237c04a9cc808434250c53d9bb923871f791e36f2b37792be4ca7
7
- data.tar.gz: 49feecebd6015a3481e12128a37daea0795e10f566aea5b96a169a9f50956d4dbe1577b8bdc437983123d367467f006745a83c6e27ce21f4e39c692d64ff0520
6
+ metadata.gz: 13adab230399a64dd9c48df3b4d6fafb986096a51f045cdf0599e95ce5ca8f04b33d245133c9bc17fc0574adf9309b5210a9d83e3dc616df289dccf1eff3962c
7
+ data.tar.gz: 7feeda2e8746b56d334cc946dc2e889648d41a32ad77f56e6b160bf9c737b2fdce09eb995da74f9553413a4b9bf8af3db7fe84af259d3f98cb3851c87261ddfb
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Provisioner
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-15 00:00:00.000000000 Z
13
+ date: 2014-01-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mixlib-cli