berkshelf 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/berkshelf.gemspec +5 -2
- data/lib/berkshelf/errors.rb +0 -30
- data/lib/berkshelf/vagrant.rb +1 -0
- data/lib/berkshelf/vagrant/errors.rb +31 -0
- data/lib/berkshelf/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +11 -16
data/Gemfile
CHANGED
@@ -3,6 +3,7 @@ source :rubygems
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
group :development do
|
6
|
+
gem 'vagrant', '~> 1.0.6'
|
6
7
|
gem 'coolline'
|
7
8
|
gem 'guard', '>= 1.5.0'
|
8
9
|
gem 'guard-cucumber'
|
@@ -43,4 +44,5 @@ group :test do
|
|
43
44
|
gem 'thor'
|
44
45
|
gem 'vcr'
|
45
46
|
gem 'webmock'
|
47
|
+
gem 'moneta', '~> 0.6.0'
|
46
48
|
end
|
data/berkshelf.gemspec
CHANGED
@@ -29,7 +29,8 @@ Gem::Specification.new do |s|
|
|
29
29
|
|
30
30
|
s.add_dependency 'yajl-ruby'
|
31
31
|
s.add_dependency 'activesupport'
|
32
|
-
|
32
|
+
# Must lock 10.16 because of Vagrant 1-0-stable JSON requirement
|
33
|
+
s.add_dependency 'chef', '= 10.16.2'
|
33
34
|
s.add_dependency 'ridley', '~> 0.6.3'
|
34
35
|
s.add_dependency 'chozo', '>= 0.2.3'
|
35
36
|
s.add_dependency 'hashie'
|
@@ -37,5 +38,7 @@ Gem::Specification.new do |s|
|
|
37
38
|
s.add_dependency 'multi_json', '>= 1.3.0'
|
38
39
|
s.add_dependency 'solve', '>= 0.4.0.rc1'
|
39
40
|
s.add_dependency 'thor', '~> 0.16.0'
|
40
|
-
|
41
|
+
|
42
|
+
# Vagrant 1-0-stable compatability locks
|
43
|
+
s.add_dependency 'net-ssh-gateway', '= 1.1.0'
|
41
44
|
end
|
data/lib/berkshelf/errors.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'vagrant/errors'
|
2
|
-
|
3
1
|
module Berkshelf
|
4
2
|
class BerkshelfError < StandardError
|
5
3
|
class << self
|
@@ -13,34 +11,6 @@ module Berkshelf
|
|
13
11
|
alias_method :message, :to_s
|
14
12
|
end
|
15
13
|
|
16
|
-
# A wrapper for a BerkshelfError for Vagrant. All Berkshelf exceptions should be
|
17
|
-
# wrapped in this proxy object so they are properly handled when Vagrant encounters
|
18
|
-
# an exception.
|
19
|
-
#
|
20
|
-
# @example wrapping an error encountered within the Vagrant plugin
|
21
|
-
# rescue BerkshelfError => e
|
22
|
-
# VagrantWrapperError.new(e)
|
23
|
-
# end
|
24
|
-
class VagrantWrapperError < Vagrant::Errors::VagrantError
|
25
|
-
# @param [BerkshelfError]
|
26
|
-
attr_reader :original
|
27
|
-
|
28
|
-
# @param [BerkshelfError] original
|
29
|
-
def initialize(original)
|
30
|
-
@original = original
|
31
|
-
end
|
32
|
-
|
33
|
-
def to_s
|
34
|
-
"#{original.class}: #{original.to_s}"
|
35
|
-
end
|
36
|
-
|
37
|
-
private
|
38
|
-
|
39
|
-
def method_missing(fun, *args, &block)
|
40
|
-
original.send(fun, *args, &block)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
14
|
class InternalError < BerkshelfError; status_code(99); end
|
45
15
|
class ArgumentError < InternalError; end
|
46
16
|
class AbstractFunction < InternalError
|
data/lib/berkshelf/vagrant.rb
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'vagrant/errors'
|
2
|
+
|
3
|
+
module Berkshelf
|
4
|
+
# A wrapper for a BerkshelfError for Vagrant. All Berkshelf exceptions should be
|
5
|
+
# wrapped in this proxy object so they are properly handled when Vagrant encounters
|
6
|
+
# an exception.
|
7
|
+
#
|
8
|
+
# @example wrapping an error encountered within the Vagrant plugin
|
9
|
+
# rescue BerkshelfError => e
|
10
|
+
# VagrantWrapperError.new(e)
|
11
|
+
# end
|
12
|
+
class VagrantWrapperError < Vagrant::Errors::VagrantError
|
13
|
+
# @param [BerkshelfError]
|
14
|
+
attr_reader :original
|
15
|
+
|
16
|
+
# @param [BerkshelfError] original
|
17
|
+
def initialize(original)
|
18
|
+
@original = original
|
19
|
+
end
|
20
|
+
|
21
|
+
def to_s
|
22
|
+
"#{original.class}: #{original.to_s}"
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def method_missing(fun, *args, &block)
|
28
|
+
original.send(fun, *args, &block)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/berkshelf/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: berkshelf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-02-
|
15
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: yajl-ruby
|
@@ -51,23 +51,17 @@ dependencies:
|
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 10.16.2
|
57
|
-
- - <=
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 11.0.1
|
60
57
|
type: :runtime
|
61
58
|
prerelease: false
|
62
59
|
version_requirements: !ruby/object:Gem::Requirement
|
63
60
|
none: false
|
64
61
|
requirements:
|
65
|
-
- -
|
62
|
+
- - '='
|
66
63
|
- !ruby/object:Gem::Version
|
67
64
|
version: 10.16.2
|
68
|
-
- - <=
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 11.0.1
|
71
65
|
- !ruby/object:Gem::Dependency
|
72
66
|
name: ridley
|
73
67
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,21 +175,21 @@ dependencies:
|
|
181
175
|
- !ruby/object:Gem::Version
|
182
176
|
version: 0.16.0
|
183
177
|
- !ruby/object:Gem::Dependency
|
184
|
-
name:
|
178
|
+
name: net-ssh-gateway
|
185
179
|
requirement: !ruby/object:Gem::Requirement
|
186
180
|
none: false
|
187
181
|
requirements:
|
188
|
-
- -
|
182
|
+
- - '='
|
189
183
|
- !ruby/object:Gem::Version
|
190
|
-
version: 1.0
|
184
|
+
version: 1.1.0
|
191
185
|
type: :runtime
|
192
186
|
prerelease: false
|
193
187
|
version_requirements: !ruby/object:Gem::Requirement
|
194
188
|
none: false
|
195
189
|
requirements:
|
196
|
-
- -
|
190
|
+
- - '='
|
197
191
|
- !ruby/object:Gem::Version
|
198
|
-
version: 1.0
|
192
|
+
version: 1.1.0
|
199
193
|
description: Manages a Cookbook's, or an Application's, Cookbook dependencies
|
200
194
|
email:
|
201
195
|
- jamie@vialstudios.com
|
@@ -297,6 +291,7 @@ files:
|
|
297
291
|
- lib/berkshelf/vagrant/action/upload.rb
|
298
292
|
- lib/berkshelf/vagrant/action/validate.rb
|
299
293
|
- lib/berkshelf/vagrant/config.rb
|
294
|
+
- lib/berkshelf/vagrant/errors.rb
|
300
295
|
- lib/berkshelf/vagrant/middleware.rb
|
301
296
|
- lib/berkshelf/version.rb
|
302
297
|
- lib/thor/monkies.rb
|
@@ -375,7 +370,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
375
370
|
version: '0'
|
376
371
|
segments:
|
377
372
|
- 0
|
378
|
-
hash:
|
373
|
+
hash: 3683158693546377587
|
379
374
|
requirements: []
|
380
375
|
rubyforge_project:
|
381
376
|
rubygems_version: 1.8.24
|