ridley 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.travis.yml +5 -0
- data/Gemfile +3 -0
- data/Guardfile +20 -0
- data/LICENSE +201 -0
- data/README.md +273 -0
- data/Thorfile +48 -0
- data/lib/ridley.rb +48 -0
- data/lib/ridley/connection.rb +131 -0
- data/lib/ridley/context.rb +25 -0
- data/lib/ridley/dsl.rb +58 -0
- data/lib/ridley/errors.rb +82 -0
- data/lib/ridley/log.rb +10 -0
- data/lib/ridley/middleware.rb +19 -0
- data/lib/ridley/middleware/chef_auth.rb +45 -0
- data/lib/ridley/middleware/chef_response.rb +28 -0
- data/lib/ridley/middleware/parse_json.rb +107 -0
- data/lib/ridley/resource.rb +305 -0
- data/lib/ridley/resources/client.rb +75 -0
- data/lib/ridley/resources/cookbook.rb +27 -0
- data/lib/ridley/resources/data_bag.rb +75 -0
- data/lib/ridley/resources/data_bag_item.rb +186 -0
- data/lib/ridley/resources/environment.rb +45 -0
- data/lib/ridley/resources/node.rb +34 -0
- data/lib/ridley/resources/role.rb +33 -0
- data/lib/ridley/version.rb +3 -0
- data/ridley.gemspec +39 -0
- data/spec/acceptance/client_resource_spec.rb +135 -0
- data/spec/acceptance/cookbook_resource_spec.rb +46 -0
- data/spec/acceptance/data_bag_item_resource_spec.rb +171 -0
- data/spec/acceptance/data_bag_resource_spec.rb +51 -0
- data/spec/acceptance/environment_resource_spec.rb +171 -0
- data/spec/acceptance/node_resource_spec.rb +218 -0
- data/spec/acceptance/role_resource_spec.rb +200 -0
- data/spec/fixtures/reset.pem +27 -0
- data/spec/spec_helper.rb +25 -0
- data/spec/support/each_matcher.rb +12 -0
- data/spec/support/shared_examples/ridley_resource.rb +237 -0
- data/spec/support/spec_helpers.rb +11 -0
- data/spec/unit/ridley/connection_spec.rb +167 -0
- data/spec/unit/ridley/errors_spec.rb +34 -0
- data/spec/unit/ridley/middleware/chef_auth_spec.rb +14 -0
- data/spec/unit/ridley/middleware/chef_response_spec.rb +213 -0
- data/spec/unit/ridley/middleware/parse_json_spec.rb +74 -0
- data/spec/unit/ridley/resource_spec.rb +214 -0
- data/spec/unit/ridley/resources/client_spec.rb +47 -0
- data/spec/unit/ridley/resources/cookbook_spec.rb +5 -0
- data/spec/unit/ridley/resources/data_bag_item_spec.rb +42 -0
- data/spec/unit/ridley/resources/data_bag_spec.rb +15 -0
- data/spec/unit/ridley/resources/environment_spec.rb +73 -0
- data/spec/unit/ridley/resources/node_spec.rb +5 -0
- data/spec/unit/ridley/resources/role_spec.rb +5 -0
- data/spec/unit/ridley_spec.rb +32 -0
- metadata +451 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Ridley::Client do
|
4
|
+
it_behaves_like "a Ridley Resource", Ridley::Client
|
5
|
+
|
6
|
+
let(:connection) { double('connection') }
|
7
|
+
|
8
|
+
describe "ClassMethods" do
|
9
|
+
subject { Ridley::Client }
|
10
|
+
|
11
|
+
describe "::regenerate_key" do
|
12
|
+
let(:client) { double('client', name: "ridley-test") }
|
13
|
+
|
14
|
+
it "finds the given client and regenerates it's key" do
|
15
|
+
client.should_receive(:regenerate_key)
|
16
|
+
subject.should_receive(:find!).with(connection, "ridley-test").and_return(client)
|
17
|
+
|
18
|
+
subject.regenerate_key(connection, "ridley-test")
|
19
|
+
end
|
20
|
+
|
21
|
+
it "returns the updated client" do
|
22
|
+
client.should_receive(:regenerate_key)
|
23
|
+
subject.should_receive(:find!).with(connection, "ridley-test").and_return(client)
|
24
|
+
|
25
|
+
subject.regenerate_key(connection, "ridley-test").should eql(client)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
subject do
|
31
|
+
Ridley::Client.new(connection, name: "ridley-test", admin: false)
|
32
|
+
end
|
33
|
+
|
34
|
+
describe "#regenerate_key" do
|
35
|
+
it "returns true if successful" do
|
36
|
+
subject.should_receive(:save).and_return(true)
|
37
|
+
|
38
|
+
subject.regenerate_key.should be_true
|
39
|
+
end
|
40
|
+
|
41
|
+
it "returns false if not successful" do
|
42
|
+
subject.should_receive(:save).and_return(false)
|
43
|
+
|
44
|
+
subject.regenerate_key.should be_false
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Ridley::DataBagItem do
|
4
|
+
let(:connection) { double('connection') }
|
5
|
+
let(:data_bag) { double('data_bag') }
|
6
|
+
|
7
|
+
subject { Ridley::DataBagItem.new(connection, data_bag) }
|
8
|
+
|
9
|
+
describe "::from_hash" do
|
10
|
+
context "when JSON has a 'raw_data' field" do
|
11
|
+
let(:response) do
|
12
|
+
{
|
13
|
+
name: "data_bag_item_ridley-test_appconfig",
|
14
|
+
raw_data: {
|
15
|
+
id: "appconfig",
|
16
|
+
host: "host.local"
|
17
|
+
},
|
18
|
+
json_class: "Chef::DataBagItem",
|
19
|
+
data_bag: "ridley-test",
|
20
|
+
chef_type: "data_bag_item"
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
it "returns a new object from attributes in the 'raw_data' field" do
|
25
|
+
subject.from_hash(response).attributes.should eql(response[:raw_data])
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context "when JSON does not contain a 'raw_data' field" do
|
30
|
+
let(:response) do
|
31
|
+
{
|
32
|
+
id: "appconfig",
|
33
|
+
host: "host.local"
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
it "returns a new object from the hash" do
|
38
|
+
subject.from_hash(response).attributes.should eql(response)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Ridley::DataBag do
|
4
|
+
it_behaves_like "a Ridley Resource", Ridley::DataBag
|
5
|
+
|
6
|
+
let(:connection) { double('connection') }
|
7
|
+
|
8
|
+
describe "ClassMethods" do
|
9
|
+
subject { Ridley::DataBag }
|
10
|
+
|
11
|
+
describe "::create_item" do
|
12
|
+
pending
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Ridley::Environment do
|
4
|
+
it_behaves_like "a Ridley Resource", Ridley::Environment
|
5
|
+
|
6
|
+
let(:connection) { double("connection") }
|
7
|
+
|
8
|
+
let(:environment_json) do
|
9
|
+
%(
|
10
|
+
{
|
11
|
+
"name": "crazy-town",
|
12
|
+
"default_attributes": {
|
13
|
+
"nested_attribute": {
|
14
|
+
"status": "running",
|
15
|
+
"list": [
|
16
|
+
"one-thing"
|
17
|
+
],
|
18
|
+
"feelin_good": true
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"description": "Single letter variables. Who the fuck do you think you are?",
|
22
|
+
"cookbook_versions": {
|
23
|
+
|
24
|
+
},
|
25
|
+
"override_attributes": {
|
26
|
+
"mysql": {
|
27
|
+
"bind_address": "127.0.0.1",
|
28
|
+
"server_root_password": "password_lol"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"chef_type": "environment"
|
32
|
+
}
|
33
|
+
)
|
34
|
+
end
|
35
|
+
|
36
|
+
describe "ClassMethods" do
|
37
|
+
subject { Ridley::Environment }
|
38
|
+
|
39
|
+
describe "::initialize" do
|
40
|
+
before(:each) do
|
41
|
+
@env = subject.new(connection, parse_json(environment_json))
|
42
|
+
end
|
43
|
+
|
44
|
+
it "has a value for 'name'" do
|
45
|
+
@env.name.should eql("crazy-town")
|
46
|
+
end
|
47
|
+
|
48
|
+
it "has a value for 'default_attributes'" do
|
49
|
+
@env.default_attributes.should be_a(Hash)
|
50
|
+
@env.default_attributes.should have_key("nested_attribute")
|
51
|
+
@env.default_attributes["nested_attribute"]["status"].should eql("running")
|
52
|
+
end
|
53
|
+
|
54
|
+
it "has a value for 'description'" do
|
55
|
+
@env.description.should eql("Single letter variables. Who the fuck do you think you are?")
|
56
|
+
end
|
57
|
+
|
58
|
+
it "has a value for 'cookbook_version'" do
|
59
|
+
@env.cookbook_versions.should be_a(Hash)
|
60
|
+
end
|
61
|
+
|
62
|
+
it "has a value for 'override_attributes'" do
|
63
|
+
@env.override_attributes.should be_a(Hash)
|
64
|
+
@env.override_attributes.should have_key("mysql")
|
65
|
+
@env.override_attributes["mysql"].should have_key("bind_address")
|
66
|
+
end
|
67
|
+
|
68
|
+
it "has a value for 'chef_type'" do
|
69
|
+
@env.chef_type.should eql("environment")
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Ridley do
|
4
|
+
let(:config) { double("config") }
|
5
|
+
|
6
|
+
describe "ClassMethods" do
|
7
|
+
subject { Ridley }
|
8
|
+
|
9
|
+
describe "::sync" do
|
10
|
+
it "delegates to Ridley::Connection.sync" do
|
11
|
+
Ridley::Connection.should_receive(:sync).with(config)
|
12
|
+
|
13
|
+
subject.sync(config) do; end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "::connection" do
|
18
|
+
it "creates a new Ridley::Connection" do
|
19
|
+
conn = double('conn')
|
20
|
+
Ridley::Connection.should_receive(:new).with(config).and_return(conn)
|
21
|
+
|
22
|
+
subject.connection(config).should eql(conn)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "::log" do
|
27
|
+
it "returns the Ridley::Log singleton" do
|
28
|
+
subject.log.should eql(Ridley::Log)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,451 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ridley
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jamie Winsor
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-08-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: yajl-ruby
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: mixlib-log
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: mixlib-authentication
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: addressable
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: faraday
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: multi_json
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: activemodel
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rake
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: rspec
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: fuubar
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: spork
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: yard
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ! '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
name: guard
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ! '>='
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ! '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
222
|
+
- !ruby/object:Gem::Dependency
|
223
|
+
name: guard-rspec
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
227
|
+
- - ! '>='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
- !ruby/object:Gem::Dependency
|
239
|
+
name: guard-spork
|
240
|
+
requirement: !ruby/object:Gem::Requirement
|
241
|
+
none: false
|
242
|
+
requirements:
|
243
|
+
- - ! '>='
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '0'
|
246
|
+
type: :development
|
247
|
+
prerelease: false
|
248
|
+
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
250
|
+
requirements:
|
251
|
+
- - ! '>='
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
254
|
+
- !ruby/object:Gem::Dependency
|
255
|
+
name: guard-yard
|
256
|
+
requirement: !ruby/object:Gem::Requirement
|
257
|
+
none: false
|
258
|
+
requirements:
|
259
|
+
- - ! '>='
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: '0'
|
262
|
+
type: :development
|
263
|
+
prerelease: false
|
264
|
+
version_requirements: !ruby/object:Gem::Requirement
|
265
|
+
none: false
|
266
|
+
requirements:
|
267
|
+
- - ! '>='
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
270
|
+
- !ruby/object:Gem::Dependency
|
271
|
+
name: coolline
|
272
|
+
requirement: !ruby/object:Gem::Requirement
|
273
|
+
none: false
|
274
|
+
requirements:
|
275
|
+
- - ! '>='
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: '0'
|
278
|
+
type: :development
|
279
|
+
prerelease: false
|
280
|
+
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
none: false
|
282
|
+
requirements:
|
283
|
+
- - ! '>='
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
- !ruby/object:Gem::Dependency
|
287
|
+
name: redcarpet
|
288
|
+
requirement: !ruby/object:Gem::Requirement
|
289
|
+
none: false
|
290
|
+
requirements:
|
291
|
+
- - ! '>='
|
292
|
+
- !ruby/object:Gem::Version
|
293
|
+
version: '0'
|
294
|
+
type: :development
|
295
|
+
prerelease: false
|
296
|
+
version_requirements: !ruby/object:Gem::Requirement
|
297
|
+
none: false
|
298
|
+
requirements:
|
299
|
+
- - ! '>='
|
300
|
+
- !ruby/object:Gem::Version
|
301
|
+
version: '0'
|
302
|
+
- !ruby/object:Gem::Dependency
|
303
|
+
name: json_spec
|
304
|
+
requirement: !ruby/object:Gem::Requirement
|
305
|
+
none: false
|
306
|
+
requirements:
|
307
|
+
- - ! '>='
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '0'
|
310
|
+
type: :development
|
311
|
+
prerelease: false
|
312
|
+
version_requirements: !ruby/object:Gem::Requirement
|
313
|
+
none: false
|
314
|
+
requirements:
|
315
|
+
- - ! '>='
|
316
|
+
- !ruby/object:Gem::Version
|
317
|
+
version: '0'
|
318
|
+
- !ruby/object:Gem::Dependency
|
319
|
+
name: webmock
|
320
|
+
requirement: !ruby/object:Gem::Requirement
|
321
|
+
none: false
|
322
|
+
requirements:
|
323
|
+
- - ! '>='
|
324
|
+
- !ruby/object:Gem::Version
|
325
|
+
version: '0'
|
326
|
+
type: :development
|
327
|
+
prerelease: false
|
328
|
+
version_requirements: !ruby/object:Gem::Requirement
|
329
|
+
none: false
|
330
|
+
requirements:
|
331
|
+
- - ! '>='
|
332
|
+
- !ruby/object:Gem::Version
|
333
|
+
version: '0'
|
334
|
+
description: A reliable Chef API client with a clean syntax
|
335
|
+
email:
|
336
|
+
- jamie@vialstudios.com
|
337
|
+
executables: []
|
338
|
+
extensions: []
|
339
|
+
extra_rdoc_files: []
|
340
|
+
files:
|
341
|
+
- .gitignore
|
342
|
+
- .travis.yml
|
343
|
+
- Gemfile
|
344
|
+
- Guardfile
|
345
|
+
- LICENSE
|
346
|
+
- README.md
|
347
|
+
- Thorfile
|
348
|
+
- lib/ridley.rb
|
349
|
+
- lib/ridley/connection.rb
|
350
|
+
- lib/ridley/context.rb
|
351
|
+
- lib/ridley/dsl.rb
|
352
|
+
- lib/ridley/errors.rb
|
353
|
+
- lib/ridley/log.rb
|
354
|
+
- lib/ridley/middleware.rb
|
355
|
+
- lib/ridley/middleware/chef_auth.rb
|
356
|
+
- lib/ridley/middleware/chef_response.rb
|
357
|
+
- lib/ridley/middleware/parse_json.rb
|
358
|
+
- lib/ridley/resource.rb
|
359
|
+
- lib/ridley/resources/client.rb
|
360
|
+
- lib/ridley/resources/cookbook.rb
|
361
|
+
- lib/ridley/resources/data_bag.rb
|
362
|
+
- lib/ridley/resources/data_bag_item.rb
|
363
|
+
- lib/ridley/resources/environment.rb
|
364
|
+
- lib/ridley/resources/node.rb
|
365
|
+
- lib/ridley/resources/role.rb
|
366
|
+
- lib/ridley/version.rb
|
367
|
+
- ridley.gemspec
|
368
|
+
- spec/acceptance/client_resource_spec.rb
|
369
|
+
- spec/acceptance/cookbook_resource_spec.rb
|
370
|
+
- spec/acceptance/data_bag_item_resource_spec.rb
|
371
|
+
- spec/acceptance/data_bag_resource_spec.rb
|
372
|
+
- spec/acceptance/environment_resource_spec.rb
|
373
|
+
- spec/acceptance/node_resource_spec.rb
|
374
|
+
- spec/acceptance/role_resource_spec.rb
|
375
|
+
- spec/fixtures/reset.pem
|
376
|
+
- spec/spec_helper.rb
|
377
|
+
- spec/support/each_matcher.rb
|
378
|
+
- spec/support/shared_examples/ridley_resource.rb
|
379
|
+
- spec/support/spec_helpers.rb
|
380
|
+
- spec/unit/ridley/connection_spec.rb
|
381
|
+
- spec/unit/ridley/errors_spec.rb
|
382
|
+
- spec/unit/ridley/middleware/chef_auth_spec.rb
|
383
|
+
- spec/unit/ridley/middleware/chef_response_spec.rb
|
384
|
+
- spec/unit/ridley/middleware/parse_json_spec.rb
|
385
|
+
- spec/unit/ridley/resource_spec.rb
|
386
|
+
- spec/unit/ridley/resources/client_spec.rb
|
387
|
+
- spec/unit/ridley/resources/cookbook_spec.rb
|
388
|
+
- spec/unit/ridley/resources/data_bag_item_spec.rb
|
389
|
+
- spec/unit/ridley/resources/data_bag_spec.rb
|
390
|
+
- spec/unit/ridley/resources/environment_spec.rb
|
391
|
+
- spec/unit/ridley/resources/node_spec.rb
|
392
|
+
- spec/unit/ridley/resources/role_spec.rb
|
393
|
+
- spec/unit/ridley_spec.rb
|
394
|
+
homepage: https://github.com/reset/ridley
|
395
|
+
licenses: []
|
396
|
+
post_install_message:
|
397
|
+
rdoc_options: []
|
398
|
+
require_paths:
|
399
|
+
- lib
|
400
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
401
|
+
none: false
|
402
|
+
requirements:
|
403
|
+
- - ! '>='
|
404
|
+
- !ruby/object:Gem::Version
|
405
|
+
version: '0'
|
406
|
+
segments:
|
407
|
+
- 0
|
408
|
+
hash: 3057633279662549305
|
409
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
410
|
+
none: false
|
411
|
+
requirements:
|
412
|
+
- - ! '>='
|
413
|
+
- !ruby/object:Gem::Version
|
414
|
+
version: '0'
|
415
|
+
segments:
|
416
|
+
- 0
|
417
|
+
hash: 3057633279662549305
|
418
|
+
requirements: []
|
419
|
+
rubyforge_project:
|
420
|
+
rubygems_version: 1.8.23
|
421
|
+
signing_key:
|
422
|
+
specification_version: 3
|
423
|
+
summary: A reliable Chef API client with a clean syntax
|
424
|
+
test_files:
|
425
|
+
- spec/acceptance/client_resource_spec.rb
|
426
|
+
- spec/acceptance/cookbook_resource_spec.rb
|
427
|
+
- spec/acceptance/data_bag_item_resource_spec.rb
|
428
|
+
- spec/acceptance/data_bag_resource_spec.rb
|
429
|
+
- spec/acceptance/environment_resource_spec.rb
|
430
|
+
- spec/acceptance/node_resource_spec.rb
|
431
|
+
- spec/acceptance/role_resource_spec.rb
|
432
|
+
- spec/fixtures/reset.pem
|
433
|
+
- spec/spec_helper.rb
|
434
|
+
- spec/support/each_matcher.rb
|
435
|
+
- spec/support/shared_examples/ridley_resource.rb
|
436
|
+
- spec/support/spec_helpers.rb
|
437
|
+
- spec/unit/ridley/connection_spec.rb
|
438
|
+
- spec/unit/ridley/errors_spec.rb
|
439
|
+
- spec/unit/ridley/middleware/chef_auth_spec.rb
|
440
|
+
- spec/unit/ridley/middleware/chef_response_spec.rb
|
441
|
+
- spec/unit/ridley/middleware/parse_json_spec.rb
|
442
|
+
- spec/unit/ridley/resource_spec.rb
|
443
|
+
- spec/unit/ridley/resources/client_spec.rb
|
444
|
+
- spec/unit/ridley/resources/cookbook_spec.rb
|
445
|
+
- spec/unit/ridley/resources/data_bag_item_spec.rb
|
446
|
+
- spec/unit/ridley/resources/data_bag_spec.rb
|
447
|
+
- spec/unit/ridley/resources/environment_spec.rb
|
448
|
+
- spec/unit/ridley/resources/node_spec.rb
|
449
|
+
- spec/unit/ridley/resources/role_spec.rb
|
450
|
+
- spec/unit/ridley_spec.rb
|
451
|
+
has_rdoc:
|