busser 0.3.2 → 0.4.0

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.
@@ -1,3 +1,11 @@
1
+ ## 0.4.0 / 2013-04-10
2
+
3
+ ### New features
4
+
5
+ * Add Busser::Helpers.install_gem. ([@fnichol][])
6
+ * Add Busser::UI.run_ruby_script! (dies on nonzero exit). ([@fnichol][])
7
+
8
+
1
9
  ## 0.3.2 / 2013-04-10
2
10
 
3
11
  ### Improvements
@@ -6,7 +6,7 @@ require 'busser/cucumber'
6
6
  SimpleCov.command_name "features"
7
7
 
8
8
  Before do
9
- @aruba_timeout_seconds = 10
9
+ @aruba_timeout_seconds = 20
10
10
  end
11
11
 
12
12
  After do |s|
@@ -18,6 +18,8 @@
18
18
 
19
19
  require 'pathname'
20
20
 
21
+ require 'busser/rubygems'
22
+
21
23
  module Busser
22
24
 
23
25
  module Helpers
@@ -44,5 +46,9 @@ module Busser
44
46
  require 'busser/chef_apply'
45
47
  ChefApply.new(config, &block).converge
46
48
  end
49
+
50
+ def install_gem(gem, version = nil)
51
+ Busser::RubyGems.install_gem(gem, version)
52
+ end
47
53
  end
48
54
  end
@@ -69,8 +69,6 @@ module Busser
69
69
  Gem::DefaultUserInteraction.ui = interaction
70
70
  end
71
71
 
72
- private
73
-
74
72
  def dep_installer
75
73
  Gem::DependencyInstaller.new
76
74
  end
@@ -46,6 +46,16 @@ module Busser
46
46
  end
47
47
  end
48
48
 
49
+ def run_ruby_script!(cmd, config = {})
50
+ config = { :capture => false, :verbose => false }.merge(config)
51
+ run_ruby_script(cmd, config)
52
+
53
+ if $?.success?
54
+ true
55
+ else
56
+ die "Ruby Script[#{cmd}] exit code was #{$?.exitstatus}", $?.exitstatus
57
+ end
58
+ end
49
59
  def die(msg, exitstatus = 1)
50
60
  $stderr.puts(msg)
51
61
  exit(exitstatus)
@@ -17,5 +17,5 @@
17
17
  # limitations under the License.
18
18
 
19
19
  module Busser
20
- VERSION = "0.3.2"
20
+ VERSION = "0.4.0"
21
21
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Busser::<%= config[:klass_name] %>::VERSION
9
9
  spec.authors = ['<%= config[:author] %>']
10
10
  spec.email = ['<%= config[:email] %>']
11
- spec.description = %q{<%= config[:klass_name] %> runner plugin for Busser}
11
+ spec.description = %q{A Busser <%= config[:type] %> plugin for <%= config[:klass_name] %>}
12
12
  spec.summary = spec.description
13
13
  spec.homepage = ''
14
14
  spec.license = '<%= config[:license_string] %>'
@@ -4,7 +4,7 @@
4
4
 
5
5
  require 'busser/runner_plugin'
6
6
 
7
- # <%= config[:klass_name] %> runner plugin for Busser
7
+ # A Busser <%= config[:type] %> plugin for <%= config[:klass_name] %>.
8
8
  #
9
9
  # @author <%= config[:author] %> <<%= config[:email] %>>
10
10
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: busser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -343,6 +343,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
343
343
  - - ! '>='
344
344
  - !ruby/object:Gem::Version
345
345
  version: '0'
346
+ segments:
347
+ - 0
348
+ hash: -3072870193518328315
346
349
  requirements: []
347
350
  rubyforge_project:
348
351
  rubygems_version: 1.8.24