solid 0.1.2 → 0.1.4.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.4.rc1
data/lib/solid/base.rb ADDED
@@ -0,0 +1,25 @@
1
+ module Solid
2
+
3
+ class Base
4
+ CHEF_GEMS = [
5
+ {:name => 'uuidtools', :version => '2.1.1'},
6
+ {:name => 'highline', :version => '1.6.1'},
7
+ {:name => 'moneta', :version => '0.6.0'},
8
+ {:name => 'extlib', :version => '0.9.15'},
9
+ {:name => 'erubis', :version => '2.6.6'},
10
+ {:name => 'json', :version => '1.4.2'},
11
+ {:name => 'bunny', :version => '0.6.0'},
12
+ {:name => 'rest-client', :version => '1.5.1'},
13
+ {:name => 'systemu', :version => '1.2.0'},
14
+ {:name => 'mixlib-authentication', :version => '1.1.4'},
15
+ {:name => 'mixlib-log', :version => '1.1.0'},
16
+ {:name => 'mixlib-cli', :version => '1.2.0'},
17
+ {:name => 'mixlib-config', :version => '1.1.2'},
18
+ {:name => 'ohai', :version => '0.5.6'},
19
+ {:name => 'chef', :version => '0.9.8'}
20
+ ]
21
+
22
+
23
+
24
+ end
25
+ end
data/lib/solid/chef.rb CHANGED
@@ -1,31 +1,11 @@
1
1
  module Solid
2
2
 
3
- class Chef
3
+ class Chef < Solid::Base
4
4
  APT_GET = %w{ ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential git-core xfsprogs }
5
5
  RUBYGEMS_DIR = 'rubygems-1.3.7'
6
6
  RUBYGEMS_FILE = "#{RUBYGEMS_DIR}.tgz"
7
7
  RUBYGEMS_URL = "http://rubyforge.org/frs/download.php/70696/#{RUBYGEMS_FILE}"
8
8
 
9
- CHEF_GEMS = [
10
- {:name => 'uuidtools', :version => '2.1.1'},
11
- {:name => 'highline', :version => '1.6.1'},
12
- {:name => 'moneta', :version => '0.6.0'},
13
- {:name => 'extlib', :version => '0.9.15'},
14
- {:name => 'abstract', :version => '1.0.0'},
15
- {:name => 'erubis', :version => '2.6.6'},
16
- {:name => 'json', :version => '1.4.2'},
17
- {:name => 'bunny', :version => '0.6.0'},
18
- {:name => 'mime-types', :version => '1.16'},
19
- {:name => 'rest-client', :version => '1.5.1'},
20
- {:name => 'systemu', :version => '1.2.0'},
21
- {:name => 'mixlib-log', :version => '1.1.0'},
22
- {:name => 'mixlib-authentication', :version => '1.1.4'},
23
- {:name => 'mixlib-cli', :version => '1.2.0'},
24
- {:name => 'mixlib-config', :version => '1.1.2'},
25
- {:name => 'ohai', :version => '0.5.6'},
26
- {:name => 'chef', :version => '0.9.8'}
27
- ]
28
-
29
9
  def initialize(server, user, options = {})
30
10
  @server = server
31
11
  @user = user
@@ -0,0 +1,13 @@
1
+ module Solid
2
+
3
+ class ChefSolo < Solid::Base
4
+
5
+ def install
6
+ CHEF_GEMS.each do |gem|
7
+ %x["sudo gem install #{gem[:name]} -v #{gem[:version]}"]
8
+ end
9
+ end
10
+
11
+ end
12
+ end
13
+
@@ -4,6 +4,12 @@ module Solid
4
4
 
5
5
  class << self
6
6
 
7
+ def init
8
+ chef_solo = ChefSolo.new
9
+ chef_solo.install
10
+ end
11
+
12
+
7
13
  def deploy(dna_file)
8
14
  dna = Crack::JSON.parse(get_dna(dna_file))
9
15
  dna["servers"].each do |s|
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.1.2"
8
+ s.version = "0.1.4.rc1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thing-3"]
12
- s.date = %q{2010-08-07}
12
+ s.date = %q{2010-08-10}
13
13
  s.default_executable = %q{solid}
14
14
  s.description = %q{ssh deployment application}
15
15
  s.email = %q{thing3@jackhq.com}
@@ -27,7 +27,9 @@ Gem::Specification.new do |s|
27
27
  "VERSION",
28
28
  "bin/solid",
29
29
  "lib/solid.rb",
30
+ "lib/solid/base.rb",
30
31
  "lib/solid/chef.rb",
32
+ "lib/solid/chef_solo.rb",
31
33
  "lib/solid/commands.rb",
32
34
  "solid.gemspec",
33
35
  "test/helper.rb",
@@ -36,7 +38,7 @@ Gem::Specification.new do |s|
36
38
  s.homepage = %q{http://github.com/jackhq/solid}
37
39
  s.rdoc_options = ["--charset=UTF-8"]
38
40
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.7}
41
+ s.rubygems_version = %q{1.3.6}
40
42
  s.summary = %q{ssh deployment application}
41
43
  s.test_files = [
42
44
  "test/helper.rb",
@@ -47,7 +49,7 @@ Gem::Specification.new do |s|
47
49
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
50
  s.specification_version = 3
49
51
 
50
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
53
  s.add_runtime_dependency(%q<net-ssh>, [">= 0"])
52
54
  s.add_runtime_dependency(%q<crack>, [">= 0"])
53
55
  s.add_runtime_dependency(%q<json_pure>, [">= 0"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ prerelease: true
6
5
  segments:
7
6
  - 0
8
7
  - 1
9
- - 2
10
- version: 0.1.2
8
+ - 4
9
+ - rc1
10
+ version: 0.1.4.rc1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thing-3
@@ -15,18 +15,16 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-07 00:00:00 -04:00
18
+ date: 2010-08-10 00:00:00 -04:00
19
19
  default_executable: solid
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: net-ssh
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
@@ -36,11 +34,9 @@ dependencies:
36
34
  name: crack
37
35
  prerelease: false
38
36
  requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
37
  requirements:
41
38
  - - ">="
42
39
  - !ruby/object:Gem::Version
43
- hash: 3
44
40
  segments:
45
41
  - 0
46
42
  version: "0"
@@ -50,11 +46,9 @@ dependencies:
50
46
  name: json_pure
51
47
  prerelease: false
52
48
  requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
49
  requirements:
55
50
  - - ">="
56
51
  - !ruby/object:Gem::Version
57
- hash: 3
58
52
  segments:
59
53
  - 0
60
54
  version: "0"
@@ -78,7 +72,9 @@ files:
78
72
  - VERSION
79
73
  - bin/solid
80
74
  - lib/solid.rb
75
+ - lib/solid/base.rb
81
76
  - lib/solid/chef.rb
77
+ - lib/solid/chef_solo.rb
82
78
  - lib/solid/commands.rb
83
79
  - solid.gemspec
84
80
  - test/helper.rb
@@ -93,27 +89,25 @@ rdoc_options:
93
89
  require_paths:
94
90
  - lib
95
91
  required_ruby_version: !ruby/object:Gem::Requirement
96
- none: false
97
92
  requirements:
98
93
  - - ">="
99
94
  - !ruby/object:Gem::Version
100
- hash: 3
101
95
  segments:
102
96
  - 0
103
97
  version: "0"
104
98
  required_rubygems_version: !ruby/object:Gem::Requirement
105
- none: false
106
99
  requirements:
107
- - - ">="
100
+ - - ">"
108
101
  - !ruby/object:Gem::Version
109
- hash: 3
110
102
  segments:
111
- - 0
112
- version: "0"
103
+ - 1
104
+ - 3
105
+ - 1
106
+ version: 1.3.1
113
107
  requirements: []
114
108
 
115
109
  rubyforge_project:
116
- rubygems_version: 1.3.7
110
+ rubygems_version: 1.3.6
117
111
  signing_key:
118
112
  specification_version: 3
119
113
  summary: ssh deployment application