knife-update 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDBmM2Y0MDhkMWZmNDI1NjdiNTc1NmI4ZmY3YTljMzIyNWM2MTNmNQ==
4
+ YzYwYjcyMTA3NmZhOTU1NDMzNTI4OTRhYzg2MmJlNWU3ZGIwMmM5MA==
5
5
  data.tar.gz: !binary |-
6
- MGM1N2RlN2Y5NzI0OWQ1M2RjZjMzYTFhMDQ0NWU2NjlkNTgyZWNiZg==
6
+ MTI3M2RmYjJhYTM3NzdkMjVkMzZiNDY3MmQ1NDNkNWFlNDc1N2MzNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjYyNTM1NGIyZDI4ODE5ODliMTE2MGYwNzJjMDJmZmIyYWZhNzEyMmQ1NjMx
10
- Njc1YTdjY2MxZDMwMTI3YTY2NWI2Mjc1YmY1ZjQ0MTMyMjE4MTlkYjY0ZGZh
11
- YjMwMDdmMjU1OWNiMjY3YTE1MTQxNDIzMTkwY2U2ZWE4N2YyYzk=
9
+ MDg4YjgzNzM4NmUyM2YzNzYxZDVmZWZlNjRiMGEzYmVmZWI2OGIyYWI2ZTlm
10
+ YjEwNjk1NzdjMDBkZmI0ZTI3NjA1N2IzMGU1MDE0ZjMzMTc0ZDQwZGFmZmQ0
11
+ MWM2OGY4OTdjMGZiYzRiMTQ0ZGVkM2QwODNlNzA5YTU5ZjgxY2M=
12
12
  data.tar.gz: !binary |-
13
- NGJjZTMzNmZhMDZhMjM0NDRlOTc4MzMwNzJkYmU3MGYwM2FhNGFiMTI4YmJj
14
- MTU1NzIyZmVkZGVkM2JlY2Y5MWYxYzlkZDY4ZWUwNDAxMmE4OTFiZDRkNmUy
15
- ODM0MWE2N2YwMjhmN2M5ZDg3NGMxZWViMzQ3YmRlMzU3NzNjZDc=
13
+ OGZhMGRhYTdhZWZhNmEwMGIwM2RlNGRiNWJkMWEwZjk5MzNkOTdmNGIwMDJk
14
+ Y2RlM2UxMjhjNTdiMDkyNTU5NjEzOTU5NjM1MjdkNDIzZTY3ODYwODU4YWRm
15
+ NzczMzMxZTJjN2Y2YzA2YzU1OWJkODM2NWUwNjg2MjUzYzI2NjI=
@@ -76,6 +76,12 @@ class Chef
76
76
  :description => "Only collect updateable nodes and display them",
77
77
  :boolean => true
78
78
 
79
+ option :command,
80
+ :short => "-C COMMAND",
81
+ :long => "--command COMMAND",
82
+ :description => "The command to be executed on all hosts",
83
+ :default => "gem install chef -v %{version} --no-rdoc --no-ri"
84
+
79
85
  include Chef::Knife::Update
80
86
 
81
87
  def run
@@ -134,7 +140,7 @@ class Chef
134
140
  end
135
141
 
136
142
  def ssh_command(version)
137
- command = "gem install chef -v #{version} --no-rdoc --no-ri"
143
+ command = config[:command] % { :version => version }
138
144
 
139
145
  if config[:use_sudo]
140
146
  command = "sudo #{command}"
@@ -18,7 +18,7 @@
18
18
 
19
19
  module Knife
20
20
  module Update
21
- VERSION = '0.1.2'
21
+ VERSION = '0.1.3'
22
22
  MAJOR, MINOR, TINY = VERSION.split('.')
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef