knife_cookbook_dependencies 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,7 +46,7 @@ module KnifeCookbookDependencies
46
46
  return
47
47
  else
48
48
  csd = Chef::Knife::CookbookSiteDownload.new([name, latest_constrained_version.to_s, "--file", download_filename])
49
- self.class.rescue_404 do
49
+ rescue_404 do
50
50
  output = KnifeCookbookDependencies::KnifeUtils.capture_knife_output(csd)
51
51
  end
52
52
 
@@ -120,7 +120,7 @@ module KnifeCookbookDependencies
120
120
 
121
121
  def cookbook_data
122
122
  css = Chef::Knife::CookbookSiteShow.new([@name])
123
- self.class.rescue_404 do
123
+ rescue_404 do
124
124
  @cookbook_data ||= JSON.parse(KnifeCookbookDependencies::KnifeUtils.capture_knife_output(css))
125
125
  end
126
126
  end
@@ -185,16 +185,13 @@ module KnifeCookbookDependencies
185
185
  other.name == @name and other.version_constraints == @version_constraints
186
186
  end
187
187
 
188
- class << self
189
- def rescue_404
190
- begin
191
- yield
192
- rescue Net::HTTPServerException => e
193
- KnifeCookbookDependencies.ui.fatal ErrorMessages.missing_cookbook(@name) if e.message.match(/404/)
194
- exit 100
195
- end
188
+ def rescue_404
189
+ begin
190
+ yield
191
+ rescue Net::HTTPServerException => e
192
+ KnifeCookbookDependencies.ui.fatal ErrorMessages.missing_cookbook(@name) if e.message.match(/404/)
193
+ exit 100
196
194
  end
197
195
  end
198
-
199
196
  end
200
197
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeCookbookDependencies
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife_cookbook_dependencies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2012-05-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: dep_selector
18
- requirement: &70289787000100 !ruby/object:Gem::Requirement
18
+ requirement: &70112950558820 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70289787000100
26
+ version_requirements: *70112950558820
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef
29
- requirement: &70289786999120 !ruby/object:Gem::Requirement
29
+ requirement: &70112950539980 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.10.0
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70289786999120
37
+ version_requirements: *70112950539980
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: minitar
40
- requirement: &70289786998280 !ruby/object:Gem::Requirement
40
+ requirement: &70112950515020 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70289786998280
48
+ version_requirements: *70112950515020
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: aruba
51
- requirement: &70289786997780 !ruby/object:Gem::Requirement
51
+ requirement: &70112950512720 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *70289786997780
59
+ version_requirements: *70112950512720
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rake
62
- requirement: &70289786996860 !ruby/object:Gem::Requirement
62
+ requirement: &70112950508160 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ~>
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 0.9.0
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *70289786996860
70
+ version_requirements: *70112950508160
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rdoc
73
- requirement: &70289786995900 !ruby/object:Gem::Requirement
73
+ requirement: &70112950439800 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ~>
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '3.0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *70289786995900
81
+ version_requirements: *70112950439800
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: rspec
84
- requirement: &70289786994760 !ruby/object:Gem::Requirement
84
+ requirement: &70112950437840 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *70289786994760
92
+ version_requirements: *70112950437840
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: simplecov
95
- requirement: &70289786994280 !ruby/object:Gem::Requirement
95
+ requirement: &70112950436300 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '0'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *70289786994280
103
+ version_requirements: *70112950436300
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: fuubar
106
- requirement: &70289786993720 !ruby/object:Gem::Requirement
106
+ requirement: &70112950434780 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *70289786993720
114
+ version_requirements: *70112950434780
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: spork
117
- requirement: &70289786993060 !ruby/object:Gem::Requirement
117
+ requirement: &70112950423600 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: '0'
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *70289786993060
125
+ version_requirements: *70112950423600
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: guard
128
- requirement: &70289786992500 !ruby/object:Gem::Requirement
128
+ requirement: &70112950422760 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *70289786992500
136
+ version_requirements: *70112950422760
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: guard-rspec
139
- requirement: &70289786991860 !ruby/object:Gem::Requirement
139
+ requirement: &70112950421600 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,10 +144,10 @@ dependencies:
144
144
  version: '0'
145
145
  type: :development
146
146
  prerelease: false
147
- version_requirements: *70289786991860
147
+ version_requirements: *70112950421600
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: guard-spork
150
- requirement: &70289786991260 !ruby/object:Gem::Requirement
150
+ requirement: &70112950420700 !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
153
153
  - - ! '>='
@@ -155,7 +155,7 @@ dependencies:
155
155
  version: '0'
156
156
  type: :development
157
157
  prerelease: false
158
- version_requirements: *70289786991260
158
+ version_requirements: *70112950420700
159
159
  description: Resolves cookbook dependencies
160
160
  email:
161
161
  - josiah@skirmisher.net