cucumber-chef 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/cc-console ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pry'
3
+ require 'cucumber-chef'
4
+
5
+ ##
6
+ #
7
+ # Welcome to the Cucumber-Chef pry console!
8
+ #
9
+ ##
10
+ binding.pry
data/bin/cucumber-chef CHANGED
@@ -53,12 +53,12 @@ class CucumberChef < Thor
53
53
 
54
54
  chef_repo = (Cucumber::Chef.locate_parent(".chef") rescue nil)
55
55
  if ( !chef_repo || ( !File.exists?(chef_repo) || !File.directory?(chef_repo) ) )
56
- fatal("Doesn't look like your inside a chef-repo! Please relocate to one and execute your command again!")
56
+ fatal("It does not look like you are inside a chef-repo! Please relocate to one and execute your command again!")
57
57
  exit(255)
58
58
  end
59
59
 
60
60
  $logger = Cucumber::Chef::Logger.new
61
- $logger.level = (Cucumber::Chef.is_rc? ? Cucumber::Chef::Logger::DEBUG : Cucumber::Chef::Logger::INFO)
61
+ Cucumber::Chef.is_rc? and ($logger.level = Cucumber::Chef::Logger::DEBUG)
62
62
 
63
63
  message = "cucumber-chef v#{Cucumber::Chef::VERSION}"
64
64
  puts(set_color(message, :green, true))
@@ -45,8 +45,9 @@ Gem::Specification.new do |s|
45
45
  s.add_dependency("rake", ">= 0.9.2")
46
46
  s.add_dependency("ubuntu_ami", ">= 0.4.0")
47
47
 
48
- s.add_development_dependency("rspec", "~> 2.10.0")
49
- s.add_development_dependency("simplecov", "~> 0.6.4")
48
+ s.add_development_dependency("rspec", ">= 2.10.0")
49
+ s.add_development_dependency("simplecov", ">= 0.6.4")
50
+ s.add_development_dependency("pry")
50
51
 
51
52
  s.files = `git ls-files`.split("\n")
52
53
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -154,7 +154,7 @@ module Cucumber
154
154
  ################################################################################
155
155
 
156
156
  mode :user
157
- prerelease true
157
+ prerelease (Cucumber::Chef.is_rc? ? true : false)
158
158
 
159
159
  provider :aws
160
160
  librarian_chef false
@@ -43,7 +43,7 @@ module Cucumber::Chef::Helpers::ChefServer
43
43
  end
44
44
  cookbook_repo = ::Chef::CookbookLoader.new(cookbook_path)
45
45
  cookbook_repo.each do |name, cbook|
46
- ::Chef::CookbookUploader.new(cbook, cookbook_path, :force => true).upload_cookbook
46
+ ::Chef::CookbookUploader.new(cbook, cookbook_path, :force => true).upload_cookbooks
47
47
  log("chef-server", "uploaded cookbook '#{cookbook}' from path '#{cookbook_path}'")
48
48
  end
49
49
  end
@@ -2,7 +2,7 @@ Welcome to the suite of cucumber-chef tests
2
2
 
3
3
  Your general workflow will be to write cucumber features that describe the intended behaviour. You will then write failing tests by writing steps to test the behaviour, expressing them as cucumer scenarios.
4
4
 
5
- You will then want to create a cookbook, and write recipes that make your tests pass. Upload your cookbook to your Hosted Chef-Server using 'knife' or the Cucumber-Chef Test Lab OS Chef-Server using the 'cc-knife' tool, and then run the tests with:
5
+ You will then want to create a cookbook, and write recipes that make your tests pass. Upload your cookbook to the Cucumber-Chef Test Lab OS Chef-Server using the 'cc-knife' tool, and then run the tests with:
6
6
 
7
7
  cucumber-chef test [cucumber options]
8
8
 
@@ -24,7 +24,7 @@ module Cucumber
24
24
 
25
25
  ################################################################################
26
26
 
27
- VERSION = "2.0.3" unless const_defined?(:VERSION)
27
+ VERSION = "2.0.4" unless const_defined?(:VERSION)
28
28
 
29
29
  ################################################################################
30
30
 
data/lib/cucumber/chef.rb CHANGED
@@ -38,11 +38,25 @@ require 'ubuntu_ami'
38
38
 
39
39
  ################################################################################
40
40
 
41
+ require 'cucumber/chef/version'
42
+
41
43
  module Cucumber
42
44
  module Chef
43
45
 
44
46
  class Error < StandardError; end
45
47
 
48
+ autoload :Bootstrap, 'cucumber/chef/bootstrap'
49
+ autoload :Bootstrap, 'cucumber/chef/bootstrap'
50
+ autoload :Command, 'cucumber/chef/command'
51
+ autoload :Config, 'cucumber/chef/config'
52
+ autoload :Logger, 'cucumber/chef/logger'
53
+ autoload :Provisioner, 'cucumber/chef/provisioner'
54
+ autoload :SSH, 'cucumber/chef/ssh'
55
+ autoload :TCPSocket, 'cucumber/chef/tcp_socket'
56
+ autoload :Template, 'cucumber/chef/template'
57
+ autoload :TestLab, 'cucumber/chef/test_lab'
58
+ autoload :TestRunner, 'cucumber/chef/test_runner'
59
+
46
60
  require 'cucumber/chef/utility'
47
61
  extend(Cucumber::Chef::Utility)
48
62
 
@@ -50,17 +64,3 @@ module Cucumber
50
64
  end
51
65
 
52
66
  ################################################################################
53
-
54
- require 'cucumber/chef/bootstrap'
55
- require 'cucumber/chef/command'
56
- require 'cucumber/chef/config'
57
- require 'cucumber/chef/logger'
58
- require 'cucumber/chef/provisioner'
59
- require 'cucumber/chef/ssh'
60
- require 'cucumber/chef/tcp_socket'
61
- require 'cucumber/chef/template'
62
- require 'cucumber/chef/test_lab'
63
- require 'cucumber/chef/test_runner'
64
- require 'cucumber/chef/version'
65
-
66
- ################################################################################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-13 00:00:00.000000000 Z
13
+ date: 2012-09-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: chef
@@ -177,7 +177,7 @@ dependencies:
177
177
  requirement: !ruby/object:Gem::Requirement
178
178
  none: false
179
179
  requirements:
180
- - - ~>
180
+ - - ! '>='
181
181
  - !ruby/object:Gem::Version
182
182
  version: 2.10.0
183
183
  type: :development
@@ -185,7 +185,7 @@ dependencies:
185
185
  version_requirements: !ruby/object:Gem::Requirement
186
186
  none: false
187
187
  requirements:
188
- - - ~>
188
+ - - ! '>='
189
189
  - !ruby/object:Gem::Version
190
190
  version: 2.10.0
191
191
  - !ruby/object:Gem::Dependency
@@ -193,7 +193,7 @@ dependencies:
193
193
  requirement: !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
- - - ~>
196
+ - - ! '>='
197
197
  - !ruby/object:Gem::Version
198
198
  version: 0.6.4
199
199
  type: :development
@@ -201,14 +201,31 @@ dependencies:
201
201
  version_requirements: !ruby/object:Gem::Requirement
202
202
  none: false
203
203
  requirements:
204
- - - ~>
204
+ - - ! '>='
205
205
  - !ruby/object:Gem::Version
206
206
  version: 0.6.4
207
+ - !ruby/object:Gem::Dependency
208
+ name: pry
209
+ requirement: !ruby/object:Gem::Requirement
210
+ none: false
211
+ requirements:
212
+ - - ! '>='
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
215
+ type: :development
216
+ prerelease: false
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ! '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
207
223
  description: Framework for test-driven infrastructure development.
208
224
  email:
209
225
  - stephen@atalanta-systems.com
210
226
  - zachary@jovelabs.com
211
227
  executables:
228
+ - cc-console
212
229
  - cc-knife
213
230
  - cucumber-chef
214
231
  - push-cucumber-chef
@@ -225,6 +242,7 @@ files:
225
242
  - README.md
226
243
  - Rakefile
227
244
  - TODO.md
245
+ - bin/cc-console
228
246
  - bin/cc-knife
229
247
  - bin/cucumber-chef
230
248
  - bin/push-cucumber-chef