busser 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +8 -0
- data/features/support/env.rb +1 -1
- data/lib/busser/helpers.rb +6 -0
- data/lib/busser/rubygems.rb +0 -2
- data/lib/busser/ui.rb +10 -0
- data/lib/busser/version.rb +1 -1
- data/templates/plugin/gemspec.erb +1 -1
- data/templates/plugin/runner_plugin.rb.erb +1 -1
- metadata +4 -1
data/CHANGELOG.md
CHANGED
data/features/support/env.rb
CHANGED
data/lib/busser/helpers.rb
CHANGED
@@ -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
|
data/lib/busser/rubygems.rb
CHANGED
data/lib/busser/ui.rb
CHANGED
@@ -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)
|
data/lib/busser/version.rb
CHANGED
@@ -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[:
|
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] %>'
|
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.
|
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
|