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 CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/lib/solid/chef.rb CHANGED
@@ -5,7 +5,7 @@ module Solid
5
5
  def initialize(server, user, options = {})
6
6
  @server = server
7
7
  @user = user
8
- @options = options.merge(:port => 2222)
8
+ @options = options
9
9
  end
10
10
 
11
11
  def install
@@ -30,7 +30,9 @@ module Solid
30
30
  private
31
31
 
32
32
  def run(s, dna)
33
- chef = Chef.new(s, dna["user"], dna['ssh-auth'] == 'key' ? { :keys => dna["key"] } : { :password => dna["password"] })
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{solid}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thing-3"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Thing-3