solid 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/solid/chef.rb +1 -1
- data/lib/solid/commands.rb +3 -1
- data/solid.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/solid/chef.rb
CHANGED
data/lib/solid/commands.rb
CHANGED
@@ -30,7 +30,9 @@ module Solid
|
|
30
30
|
private
|
31
31
|
|
32
32
|
def run(s, dna)
|
33
|
-
|
33
|
+
options = dna['ssh-auth'] == 'key' ? { :keys => dna["key"] } : { :password => dna["password"] }
|
34
|
+
options.merge!(:port => dna['port']) if dna['port']
|
35
|
+
chef = Chef.new(s, dna["user"], options)
|
34
36
|
chef.install
|
35
37
|
chef.solo dna, dna["cookbooks"]
|
36
38
|
end
|
data/solid.gemspec
CHANGED