automateit 0.71112 → 0.71219

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,11 @@
1
+ 0.71219:
2
+ Date: Wed, 19 Dec 2007 22:00:59 -0800
3
+ Desc:
4
+ - Created a bunch of workarounds needed because of bugs and backwards incompatible changes in new versions of third-party libraries...
5
+ - (%) Fixed "gem install automateit". Created workaround for new ActiveSupport bug which doesn't install the Builder gem.
6
+ - (%) Fixed "rake regem" which generates the AutomateIt gem. Created workaround for new RubyGems bug which no longer installs the necessary Gem::Format dependency. Created workaround for new Rake bug which causes FileList to act like a string instead of an array. Created workaround for new Rake/RubyGems bugs that don't load 'rubygems' by default.
7
+ - Improved PasswdExpect, no longer passing username/password on command-line to improve security.
8
+
1
9
  0.71112:
2
10
  Date: Mon, 12 Nov 2007 09:51:31 -0800
3
11
  Desc:
data/Hoe.rake CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'hoe'
2
3
 
3
4
  $LOAD_PATH.unshift('lib')
@@ -24,7 +25,8 @@ Hoe.new("AutomateIt", AutomateIt::VERSION.to_s) do |s|
24
25
  s.changes = s.paragraphs_of('CHANGES.txt', 0).join("\n")
25
26
  s.description = slogan
26
27
  s.email = "igal@pragmaticraft.com"
27
- s.extra_deps = [["activesupport", ">= 1.4"], ["open4", ">= 0.9"]]
28
+ # TODO Remove dependency on activesupport and builder
29
+ s.extra_deps = [["activesupport", ">= 1.4"], ["builder", ">= 2.0"], ["open4", ">= 0.9"]]
28
30
  s.name = "automateit"
29
31
  s.summary = slogan
30
32
  s.url = "http://automateit.org/"
data/Rakefile CHANGED
@@ -24,6 +24,7 @@ end
24
24
 
25
25
  # Run rspec on the +files+
26
26
  def specify(*files)
27
+ require 'rubygems'
27
28
  require 'spec/rake/spectask'
28
29
  Spec::Rake::SpecTask.new(:spec_internal) do |t|
29
30
  t.rcov = @rcov
@@ -112,20 +113,28 @@ task :loc => ["loc:count", "loc:diff", "loc:churn", "loc:sloc"]
112
113
 
113
114
  #---[ RubyGems ]--------------------------------------------------------
114
115
 
116
+ ARCHIVE_PATH = "../gem_archive"
115
117
  desc "Regenerate Gem"
116
118
  task :regem do
117
- archive_path = "../gem_archive"
118
- has_archive = File.directory?(archive_path)
119
- puts "WARNING: Archive of previously released gems at '#{archive_path}' is not available, do not upload without these." unless has_archive
119
+ has_archive = File.directory?(ARCHIVE_PATH)
120
+ puts "WARNING: Archive of previously released gems at '#{ARCHIVE_PATH}' is not available, do not upload without these." unless has_archive
120
121
  rm_r Dir["pkg/*"]
121
122
  mkdir_p "pkg/pub/gems"
122
- cp FileList["#{archive_path}/*.gem"], "pkg/pub/gems", :preserve => true if has_archive and not Dir["#{archive_path}/*.gem"].empty?
123
+ if has_archive && !Dir["#{ARCHIVE_PATH}/*.gem"].empty?
124
+ cp FileList["#{ARCHIVE_PATH}/*.gem"].to_a, "pkg/pub/gems", :preserve => true
125
+ end
123
126
  Rake::Task[:gem].invoke
124
127
  cp Dir["pkg/*.gem"], "pkg/pub/gems", :preserve => true
125
- cp Dir["pkg/*.gem"], "#{archive_path}", :preserve => true if has_archive
128
+ cp Dir["pkg/*.gem"], "#{ARCHIVE_PATH}", :preserve => true if has_archive
126
129
  sh "cd pkg/pub && ruby ../../misc/index_gem_repository.rb" if has_archive
127
130
  end
128
131
 
132
+ desc "Populate gem_archive"
133
+ task :download_gem_archive do
134
+ mkdir_p ARCHIVE_PATH unless File.exist?(ARCHIVE_PATH)
135
+ sh "rsync -cvaxz igal@pythia.kattare.com:automateit_org/pub/gems/ #{ARCHIVE_PATH}"
136
+ end
137
+
129
138
  desc "Generate manifest"
130
139
  task :manifest do
131
140
  hoe(:manifest)
@@ -29,7 +29,7 @@ send "$password\\r"
29
29
  expect eof
30
30
  HERE
31
31
 
32
- cmd = "expect #{filename} #{user} #{password}"
32
+ cmd = "expect #{filename}"
33
33
  cmd << " > /dev/null" if opts[:quiet]
34
34
  return(interpreter.sh cmd)
35
35
  end
@@ -1,7 +1,7 @@
1
1
  # See AutomateIt::Interpreter for usage information.
2
2
  module AutomateIt # :nodoc:
3
3
  # AutomateIt version
4
- VERSION=Gem::Version.new("0.71112")
4
+ VERSION=Gem::Version.new("0.71219")
5
5
 
6
6
  # Instantiates a new Interpreter. See documentation for
7
7
  # Interpreter#setup.
@@ -15,6 +15,7 @@ $:.unshift '~/rubygems' if File.exist? "~/rubygems"
15
15
 
16
16
  require 'optparse'
17
17
  require 'rubygems'
18
+ require 'rubygems/format' #IK# Fix for RubyGems 0.9.5
18
19
  require 'zlib'
19
20
  require 'digest/sha2'
20
21
  begin
@@ -25,75 +25,75 @@ describe "AutomateIt::TagManager", :shared => true do
25
25
  end
26
26
 
27
27
  it "should have tag for short hostname" do
28
- @a.tagged?("kurou").should be_true
28
+ @a.should be_tagged("kurou")
29
29
  end
30
30
 
31
31
  it "should have tag for long hostname" do
32
- @a.tagged?("kurou.foo").should be_true
32
+ @a.should be_tagged("kurou.foo")
33
33
  end
34
34
 
35
35
  it "should have tag for OS" do
36
- @a.tagged?("mizrahi").should be_true
36
+ @a.should be_tagged("mizrahi")
37
37
  end
38
38
 
39
39
  it "should have tag for OS/arch" do
40
- @a.tagged?("mizrahi_realian").should be_true
40
+ @a.should be_tagged("mizrahi_realian")
41
41
  end
42
42
 
43
43
  it "should have tag for distro/release" do
44
- @a.tagged?("momo_s100").should be_true
44
+ @a.should be_tagged("momo_s100")
45
45
  end
46
46
 
47
47
  it "should have tag for a role" do
48
- @a.tagged?("apache_servers").should be_true
48
+ @a.should be_tagged("apache_servers")
49
49
  end
50
50
 
51
51
  it "should match a symbol query" do
52
- @a.tagged?(:apache_servers).should be_true
52
+ @a.should be_tagged(:apache_servers)
53
53
  end
54
54
 
55
55
  it "should match a string query" do
56
- @a.tagged?("apache_servers").should be_true
56
+ @a.should be_tagged("apache_servers")
57
57
  end
58
58
 
59
59
  it "should not match unknown symbol keys" do
60
- @a.tagged?(:foo).should be_false
60
+ @a.should_not be_tagged(:foo)
61
61
  end
62
62
 
63
63
  it "should not match unknown string keys" do
64
- @a.tagged?("foo").should be_false
64
+ @a.should_not be_tagged("foo")
65
65
  end
66
66
 
67
67
  it "should match an AND query" do
68
- @a.tagged?("kurou && apache_servers").should be_true
68
+ @a.should be_tagged("kurou && apache_servers")
69
69
  end
70
70
 
71
71
  it "should match an OR query" do
72
- @a.tagged?("kurou || apache_servers").should be_true
72
+ @a.should be_tagged("kurou || apache_servers")
73
73
  end
74
74
 
75
75
  it "should match a grouped AND and OR query" do
76
- @a.tagged?("(kurou || apache_servers) && momo_s100").should be_true
76
+ @a.should be_tagged("(kurou || apache_servers) && momo_s100")
77
77
  end
78
78
 
79
79
  it "should not match AND with unknown keys" do
80
- @a.tagged?("kurou && foo").should be_false
80
+ @a.should_not be_tagged("kurou && foo")
81
81
  end
82
82
 
83
83
  it "should not match OR with unknown keys" do
84
- @a.tagged?("foo && bar").should be_false
84
+ @a.should_not be_tagged("foo && bar")
85
85
  end
86
86
 
87
87
  it "should query tags for a specific host" do
88
- @a.tagged?("proxy_servers", "kurou").should be_false
89
- @a.tagged?("proxy_servers", "akane.foo").should be_true
90
- @a.tagged?("proxy_servers", "akane").should be_true
88
+ @a.should_not be_tagged("proxy_servers", "kurou")
89
+ @a.should be_tagged("proxy_servers", "akane.foo")
90
+ @a.should be_tagged("proxy_servers", "akane")
91
91
  end
92
92
 
93
93
  it "should append tags" do
94
- @a.tagged?("magic").should be_false
94
+ @a.should_not be_tagged("magic")
95
95
  @a.tags << "magic"
96
- @a.tagged?("magic").should be_true
96
+ @a.should be_tagged("magic")
97
97
  end
98
98
 
99
99
  it "should find tags with dashes in the name" do
@@ -102,8 +102,8 @@ describe "AutomateIt::TagManager", :shared => true do
102
102
 
103
103
  @a.tags << tag_with_dash << tag_without_dash
104
104
 
105
- @a.tagged?(tag_with_dash).should be_true
106
- @a.tagged?(tag_without_dash).should be_true
105
+ @a.should be_tagged(tag_with_dash)
106
+ @a.should be_tagged(tag_without_dash)
107
107
  end
108
108
 
109
109
  it "should find tags for a host using an array" do
@@ -122,9 +122,9 @@ describe "AutomateIt::TagManager", :shared => true do
122
122
  end
123
123
 
124
124
  it "should find using negative queries" do
125
- @a.tagged?("akane").should be_false
126
- @a.tagged?("!akane").should be_true
127
- @a.tagged?("!akane && !proxy_servers").should be_true
125
+ @a.should_not be_tagged("akane")
126
+ @a.should be_tagged("!akane")
127
+ @a.should be_tagged("!akane && !proxy_servers")
128
128
  end
129
129
 
130
130
  it "should include group aliases" do
@@ -140,11 +140,11 @@ describe "AutomateIt::TagManager", :shared => true do
140
140
  end
141
141
 
142
142
  it "should match tags with dashes" do
143
- @a.tagged?("apache-servers-using-dashes").should be_true
143
+ @a.should be_tagged("apache-servers-using-dashes")
144
144
  end
145
145
 
146
146
  it "should include groups with dashes" do
147
- @a.tagged?("apache-servers-using-dashes-include").should be_true
147
+ @a.should be_tagged("apache-servers-using-dashes-include")
148
148
  end
149
149
  end
150
150
 
@@ -271,7 +271,6 @@ describe "AutomateIt::TagManager::YAML", "with no leaves" do
271
271
  end
272
272
 
273
273
  it "should tolerate empty leaves" do
274
- @a.tagged?("apache_servers").should be_false
274
+ @a.should_not be_tagged("apache_servers")
275
275
  end
276
276
  end
277
-
metadata CHANGED
@@ -1,29 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
3
- specification_version: 1
4
2
  name: automateit
5
3
  version: !ruby/object:Gem::Version
6
- version: "0.71112"
7
- date: 2007-11-12 00:00:00 -08:00
8
- summary: AutomateIt is an open source tool for automating the setup and maintenance of servers, applications and their dependencies.
9
- require_paths:
10
- - lib
11
- email: igal@pragmaticraft.com
12
- homepage: http://automateit.org/
13
- rubyforge_project: automateit
14
- description: AutomateIt is an open source tool for automating the setup and maintenance of servers, applications and their dependencies.
4
+ version: "0.71219"
5
+ platform: ruby
6
+ authors:
7
+ - Igal Koshevoy
15
8
  autorequire:
16
- default_executable:
17
9
  bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
25
- platform: ruby
26
- signing_key:
27
10
  cert_chain:
28
11
  - |
29
12
  -----BEGIN CERTIFICATE-----
@@ -47,9 +30,61 @@ cert_chain:
47
30
  COR01yWDcVLdM89nNLk=
48
31
  -----END CERTIFICATE-----
49
32
 
50
- post_install_message:
51
- authors:
52
- - Igal Koshevoy
33
+ date: 2007-12-19 00:00:00 -08:00
34
+ default_executable:
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: activesupport
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "1.4"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: builder
47
+ version_requirement:
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: "2.0"
53
+ version:
54
+ - !ruby/object:Gem::Dependency
55
+ name: open4
56
+ version_requirement:
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0.9"
62
+ version:
63
+ - !ruby/object:Gem::Dependency
64
+ name: hoe
65
+ version_requirement:
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 1.3.0
71
+ version:
72
+ description: AutomateIt is an open source tool for automating the setup and maintenance of servers, applications and their dependencies.
73
+ email: igal@pragmaticraft.com
74
+ executables:
75
+ - aifield
76
+ - automateit
77
+ - ai
78
+ - aitag
79
+ - aissh
80
+ extensions: []
81
+
82
+ extra_rdoc_files:
83
+ - README.txt
84
+ - TUTORIAL.txt
85
+ - TESTING.txt
86
+ - docs/friendly_errors.txt
87
+ - docs/previews.txt
53
88
  files:
54
89
  - add2path.sh
55
90
  - gpl.txt
@@ -66,8 +101,6 @@ files:
66
101
  - bin/ai
67
102
  - bin/aitag
68
103
  - bin/aissh
69
- - examples/basic/install.log
70
- - examples/basic/Rakefile
71
104
  - examples/basic/config/tags.yml
72
105
  - examples/basic/config/fields.yml
73
106
  - examples/basic/config/automateit_env.rb
@@ -77,16 +110,13 @@ files:
77
110
  - examples/basic/recipes/README.txt
78
111
  - examples/basic/recipes/uninstall.rb
79
112
  - examples/basic/recipes/install.rb
113
+ - examples/basic/install.log
114
+ - examples/basic/Rakefile
80
115
  - docs/friendly_errors.txt
81
116
  - docs/previews.txt
82
117
  - helpers/which.cmd
83
118
  - lib/hashcache.rb
84
119
  - lib/automateit.rb
85
- - lib/tempster.rb
86
- - lib/nitpick.rb
87
- - lib/queued_logger.rb
88
- - lib/helpful_erb.rb
89
- - lib/nested_error.rb
90
120
  - lib/automateit/tag_manager.rb
91
121
  - lib/automateit/service_manager.rb
92
122
  - lib/automateit/address_manager.rb
@@ -97,18 +127,12 @@ files:
97
127
  - lib/automateit/interpreter.rb
98
128
  - lib/automateit/package_manager.rb
99
129
  - lib/automateit/account_manager.rb
100
- - lib/automateit/plugin.rb
101
- - lib/automateit/common.rb
102
- - lib/automateit/template_manager.rb
103
- - lib/automateit/edit_manager.rb
104
- - lib/automateit/constants.rb
105
- - lib/automateit/root.rb
106
- - lib/automateit/project.rb
107
- - lib/automateit/error.rb
108
- - lib/automateit/download_manager.rb
109
130
  - lib/automateit/plugin/base.rb
110
131
  - lib/automateit/plugin/driver.rb
111
132
  - lib/automateit/plugin/manager.rb
133
+ - lib/automateit/plugin.rb
134
+ - lib/automateit/common.rb
135
+ - lib/automateit/template_manager.rb
112
136
  - lib/automateit/package_manager/pear.rb
113
137
  - lib/automateit/package_manager/apt.rb
114
138
  - lib/automateit/package_manager/pecl.rb
@@ -116,6 +140,8 @@ files:
116
140
  - lib/automateit/package_manager/egg.rb
117
141
  - lib/automateit/package_manager/yum.rb
118
142
  - lib/automateit/package_manager/portage.rb
143
+ - lib/automateit/edit_manager.rb
144
+ - lib/automateit/constants.rb
119
145
  - lib/automateit/service_manager/rc_update.rb
120
146
  - lib/automateit/service_manager/sysv.rb
121
147
  - lib/automateit/service_manager/chkconfig.rb
@@ -136,6 +162,7 @@ files:
136
162
  - lib/automateit/platform_manager/darwin.rb
137
163
  - lib/automateit/platform_manager/freebsd.rb
138
164
  - lib/automateit/platform_manager/sunos.rb
165
+ - lib/automateit/root.rb
139
166
  - lib/automateit/address_manager/bsd.rb
140
167
  - lib/automateit/address_manager/portable.rb
141
168
  - lib/automateit/address_manager/sunos.rb
@@ -143,6 +170,7 @@ files:
143
170
  - lib/automateit/address_manager/base.rb
144
171
  - lib/automateit/address_manager/freebsd.rb
145
172
  - lib/automateit/address_manager/openbsd.rb
173
+ - lib/automateit/project.rb
146
174
  - lib/automateit/shell_manager/portable.rb
147
175
  - lib/automateit/shell_manager/symlink.rb
148
176
  - lib/automateit/shell_manager/link.rb
@@ -155,16 +183,22 @@ files:
155
183
  - lib/automateit/tag_manager/tag_parser.rb
156
184
  - lib/automateit/template_manager/erb.rb
157
185
  - lib/automateit/template_manager/base.rb
186
+ - lib/automateit/error.rb
187
+ - lib/automateit/download_manager.rb
188
+ - lib/tempster.rb
158
189
  - lib/ext/metaclass.rb
159
190
  - lib/ext/object.rb
160
191
  - lib/ext/shell_escape.rb
192
+ - lib/nitpick.rb
193
+ - lib/queued_logger.rb
194
+ - lib/helpful_erb.rb
195
+ - lib/nested_error.rb
161
196
  - misc/index_gem_repository.rb
162
197
  - misc/setup_rubygems.sh
163
198
  - misc/setup_egg.rb
164
199
  - misc/setup_gem_dependencies.sh
165
200
  - misc/setup_ruby-dbi.rb
166
201
  - spec/spec_helper.rb
167
- - spec/breaker.rb
168
202
  - spec/unit/plugins_spec.rb
169
203
  - spec/unit/template_manager_erb_spec.rb
170
204
  - spec/unit/field_manager_spec.rb
@@ -192,15 +226,47 @@ files:
192
226
  - spec/integration/examples_spec_editor.rb
193
227
  - spec/integration/download_spec.rb
194
228
  - spec/integration/address_manager_spec.rb
229
+ - spec/breaker.rb
195
230
  - spec/extras/scratch.rb
196
231
  - spec/extras/automateit_service_sysv_test
197
232
  - spec/extras/simple_recipe.rb
233
+ has_rdoc: true
234
+ homepage: http://automateit.org/
235
+ post_install_message:
236
+ rdoc_options:
237
+ - --main
238
+ - README.txt
239
+ - --promiscuous
240
+ - --accessor
241
+ - class_inheritable_accessor=R
242
+ - --title
243
+ - "AutomateIt: Open source server automation"
244
+ - - lib
245
+ - docs
246
+ require_paths:
247
+ - lib
248
+ required_ruby_version: !ruby/object:Gem::Requirement
249
+ requirements:
250
+ - - ">="
251
+ - !ruby/object:Gem::Version
252
+ version: "0"
253
+ version:
254
+ required_rubygems_version: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ version: "0"
259
+ version:
260
+ requirements: []
261
+
262
+ rubyforge_project: automateit
263
+ rubygems_version: 0.9.5
264
+ signing_key:
265
+ specification_version: 2
266
+ summary: AutomateIt is an open source tool for automating the setup and maintenance of servers, applications and their dependencies.
198
267
  test_files:
199
268
  - spec/spec_helper.rb
200
269
  - spec/unit
201
- - spec/integration
202
- - spec/breaker.rb
203
- - spec/extras
204
270
  - spec/unit/plugins_spec.rb
205
271
  - spec/unit/template_manager_erb_spec.rb
206
272
  - spec/unit/field_manager_spec.rb
@@ -213,6 +279,7 @@ test_files:
213
279
  - spec/unit/shell_escape_spec.rb
214
280
  - spec/unit/object_spec.rb
215
281
  - spec/unit/nested_error_spec.rb
282
+ - spec/integration
216
283
  - spec/integration/service_manager_sysv_spec.rb
217
284
  - spec/integration/template_manager_erb_spec.rb
218
285
  - spec/integration/package_manager_spec.rb
@@ -228,60 +295,8 @@ test_files:
228
295
  - spec/integration/examples_spec_editor.rb
229
296
  - spec/integration/download_spec.rb
230
297
  - spec/integration/address_manager_spec.rb
298
+ - spec/breaker.rb
299
+ - spec/extras
231
300
  - spec/extras/scratch.rb
232
301
  - spec/extras/automateit_service_sysv_test
233
302
  - spec/extras/simple_recipe.rb
234
- rdoc_options:
235
- - --main
236
- - README.txt
237
- - --promiscuous
238
- - --accessor
239
- - class_inheritable_accessor=R
240
- - --title
241
- - "AutomateIt: Open source server automation"
242
- - - lib
243
- - docs
244
- extra_rdoc_files:
245
- - README.txt
246
- - TUTORIAL.txt
247
- - TESTING.txt
248
- - docs/friendly_errors.txt
249
- - docs/previews.txt
250
- executables:
251
- - aifield
252
- - automateit
253
- - ai
254
- - aitag
255
- - aissh
256
- extensions: []
257
-
258
- requirements: []
259
-
260
- dependencies:
261
- - !ruby/object:Gem::Dependency
262
- name: activesupport
263
- version_requirement:
264
- version_requirements: !ruby/object:Gem::Version::Requirement
265
- requirements:
266
- - - ">="
267
- - !ruby/object:Gem::Version
268
- version: "1.4"
269
- version:
270
- - !ruby/object:Gem::Dependency
271
- name: open4
272
- version_requirement:
273
- version_requirements: !ruby/object:Gem::Version::Requirement
274
- requirements:
275
- - - ">="
276
- - !ruby/object:Gem::Version
277
- version: "0.9"
278
- version:
279
- - !ruby/object:Gem::Dependency
280
- name: hoe
281
- version_requirement:
282
- version_requirements: !ruby/object:Gem::Version::Requirement
283
- requirements:
284
- - - ">="
285
- - !ruby/object:Gem::Version
286
- version: 1.3.0
287
- version:
metadata.gz.sig CHANGED
Binary file