solid 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README.rdoc +13 -4
  2. data/VERSION +1 -1
  3. data/lib/solid/chef.rb +2 -2
  4. data/solid.gemspec +4 -4
  5. metadata +15 -4
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = solid
2
2
 
3
- A Net/SSH library that connects to application servers and executes a dna.json on the server with chef-solo.
3
+ An awesome way to deploy with chef!
4
4
 
5
5
  == Requirements
6
6
 
@@ -31,14 +31,23 @@ It is a file that contains instructions for chef on how to setup and configure y
31
31
 
32
32
  * Make sure it has the following root attributes:
33
33
 
34
- * servers - array of uris or ip addresses
34
+ * servers - array of servers
35
35
  * ssh-auth - (key|pwd) - type ssh authentication
36
36
  * key - if ssh authentication is key based
37
- * pwd - if ssh authentication is pwd based
37
+ * password - if ssh authentication is pwd based
38
+ * port
38
39
 
39
40
  * Execute
40
41
 
41
- solid dna.json
42
+ solid deploy dna.json
43
+
44
+ * Rollback
45
+
46
+ solid rollback dna.json
47
+
48
+ * Logs
49
+
50
+ solid logs
42
51
 
43
52
 
44
53
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/lib/solid/chef.rb CHANGED
@@ -16,7 +16,7 @@ module Solid
16
16
  ssh.exec! "sudo apt-get install ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential git-core xfsprogs -y"
17
17
  ssh.exec! "wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz && tar zxf rubygems-1.3.7.tgz && cd rubygems-1.3.7 && sudo ruby setup.rb && sudo ln -sfv /usr/bin/gem1.8 /usr/bin/gem"
18
18
  ssh.exec! "sudo gem update --system"
19
- puts ssh.exec! "sudo gem install chef --no-ri --no-rdoc"
19
+ puts ssh.exec! "sudo gem install chef -v 0.9.6 --no-ri --no-rdoc"
20
20
  end
21
21
  end
22
22
  end
@@ -30,7 +30,7 @@ module Solid
30
30
  result =~ /chef-solo/
31
31
  end
32
32
 
33
- def solo(dna, cookbooks)
33
+ def solo(dna, cookbooks, sudo=true)
34
34
  puts @options.inspect
35
35
  Net::SSH.start(@server, @user, @options) do |ssh|
36
36
  puts "deploying..."
data/solid.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{solid}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
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"]
12
- s.date = %q{2010-06-17}
12
+ s.date = %q{2010-08-05}
13
13
  s.default_executable = %q{solid}
14
14
  s.description = %q{ssh deployment application}
15
15
  s.email = %q{thing3@jackhq.com}
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.homepage = %q{http://github.com/jackhq/solid}
37
37
  s.rdoc_options = ["--charset=UTF-8"]
38
38
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.6}
39
+ s.rubygems_version = %q{1.3.7}
40
40
  s.summary = %q{ssh deployment application}
41
41
  s.test_files = [
42
42
  "test/helper.rb",
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
47
47
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
48
  s.specification_version = 3
49
49
 
50
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
50
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
51
  s.add_runtime_dependency(%q<net-ssh>, [">= 0"])
52
52
  s.add_runtime_dependency(%q<crack>, [">= 0"])
53
53
  s.add_runtime_dependency(%q<json_pure>, [">= 0"])
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 5
9
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Thing-3
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-06-17 00:00:00 -04:00
18
+ date: 2010-08-05 00:00:00 -04:00
18
19
  default_executable: solid
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: net-ssh
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 3
27
30
  segments:
28
31
  - 0
29
32
  version: "0"
@@ -33,9 +36,11 @@ dependencies:
33
36
  name: crack
34
37
  prerelease: false
35
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
36
40
  requirements:
37
41
  - - ">="
38
42
  - !ruby/object:Gem::Version
43
+ hash: 3
39
44
  segments:
40
45
  - 0
41
46
  version: "0"
@@ -45,9 +50,11 @@ dependencies:
45
50
  name: json_pure
46
51
  prerelease: false
47
52
  requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
48
54
  requirements:
49
55
  - - ">="
50
56
  - !ruby/object:Gem::Version
57
+ hash: 3
51
58
  segments:
52
59
  - 0
53
60
  version: "0"
@@ -86,23 +93,27 @@ rdoc_options:
86
93
  require_paths:
87
94
  - lib
88
95
  required_ruby_version: !ruby/object:Gem::Requirement
96
+ none: false
89
97
  requirements:
90
98
  - - ">="
91
99
  - !ruby/object:Gem::Version
100
+ hash: 3
92
101
  segments:
93
102
  - 0
94
103
  version: "0"
95
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
+ none: false
96
106
  requirements:
97
107
  - - ">="
98
108
  - !ruby/object:Gem::Version
109
+ hash: 3
99
110
  segments:
100
111
  - 0
101
112
  version: "0"
102
113
  requirements: []
103
114
 
104
115
  rubyforge_project:
105
- rubygems_version: 1.3.6
116
+ rubygems_version: 1.3.7
106
117
  signing_key:
107
118
  specification_version: 3
108
119
  summary: ssh deployment application