berks2env 0.2.0 → 0.3.1
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.
- checksums.yaml +8 -8
- data/.gitignore +0 -1
- data/Gemfile.lock +181 -0
- data/README.md +1 -1
- data/lib/berks2env/version.rb +1 -1
- data/spec/berks2env_spec.rb +14 -3
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MjZkMTU1NjExNTYxMjZmZWRmYTFiZWM2ZDI5ZjNhZjc5Nzc4Zjk0YQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YmU3OTM5Y2IyNDcwODRlNWNjZjdjNDJjMjZhZWQzZjY5YmUyMGEwNQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZGE0OWQ5OWYxMjcyYTEzOTQ4MmNjN2RmOGJhNzNjMjE2MDBlYmYxZWM4NzMz
|
|
10
|
+
ZGIwM2U4OGZjMjdiZWZmM2JmYjc0YzMxMTMyMjAwMTE3YWFiYjQ2OWM5Y2Q0
|
|
11
|
+
ZWNiYmIwYTg4ODYyOGRiZmVkMTU0ZWY3YjVmOGRhNjFkMDYyYjA=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NWEzNWVmZWM4NzNlNTViOGZmMGVmMzQ0OWU5ZmM3ZDgyNzNjNDZjYTE4YTMx
|
|
14
|
+
ZjRhYzU5MjIxYTA2YmQyMmJhZDM3MmE3YTgyNDBiMDQ3Yjk0MzA1MzY0ZTIy
|
|
15
|
+
NjBkNjMzM2U4YTI1YzMwOTc5YjI2NjkzNjgyNWJiYmRjNTMzODM=
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
berks2env (0.3.1)
|
|
5
|
+
berkshelf (~> 3.1)
|
|
6
|
+
chef (~> 11.8)
|
|
7
|
+
json (~> 1.7, >= 1.7.7)
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: http://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
addressable (2.3.6)
|
|
13
|
+
ast (2.0.0)
|
|
14
|
+
berkshelf (3.1.2)
|
|
15
|
+
addressable (~> 2.3.4)
|
|
16
|
+
berkshelf-api-client (~> 1.2)
|
|
17
|
+
buff-config (~> 0.4)
|
|
18
|
+
buff-extensions (~> 0.4)
|
|
19
|
+
buff-shell_out (~> 0.1)
|
|
20
|
+
celluloid (~> 0.16.0.pre)
|
|
21
|
+
celluloid-io (~> 0.16.0.pre)
|
|
22
|
+
faraday (~> 0.9.0)
|
|
23
|
+
minitar (~> 0.5.4)
|
|
24
|
+
octokit (~> 3.0)
|
|
25
|
+
retryable (~> 1.3.3)
|
|
26
|
+
ridley (~> 3.1)
|
|
27
|
+
solve (~> 1.1)
|
|
28
|
+
thor (~> 0.18)
|
|
29
|
+
berkshelf-api-client (1.2.0)
|
|
30
|
+
faraday (~> 0.9.0)
|
|
31
|
+
buff-config (0.4.0)
|
|
32
|
+
buff-extensions (~> 0.3)
|
|
33
|
+
varia_model (~> 0.1)
|
|
34
|
+
buff-extensions (0.5.0)
|
|
35
|
+
buff-ignore (1.1.1)
|
|
36
|
+
buff-ruby_engine (0.1.0)
|
|
37
|
+
buff-shell_out (0.1.1)
|
|
38
|
+
buff-ruby_engine (~> 0.1.0)
|
|
39
|
+
celluloid (0.16.0.pre)
|
|
40
|
+
timers (~> 2.0.0)
|
|
41
|
+
celluloid-io (0.16.0.pre)
|
|
42
|
+
celluloid (>= 0.16.0.pre)
|
|
43
|
+
nio4r (>= 1.0.0)
|
|
44
|
+
chef (11.12.4)
|
|
45
|
+
chef-zero (~> 2.0, >= 2.0.2)
|
|
46
|
+
diff-lcs (~> 1.2, >= 1.2.4)
|
|
47
|
+
erubis (~> 2.7)
|
|
48
|
+
highline (~> 1.6, >= 1.6.9)
|
|
49
|
+
json (>= 1.4.4, <= 1.8.1)
|
|
50
|
+
mime-types (~> 1.16)
|
|
51
|
+
mixlib-authentication (~> 1.3)
|
|
52
|
+
mixlib-cli (~> 1.4)
|
|
53
|
+
mixlib-config (~> 2.0)
|
|
54
|
+
mixlib-log (~> 1.3)
|
|
55
|
+
mixlib-shellout (~> 1.4)
|
|
56
|
+
net-ssh (~> 2.6)
|
|
57
|
+
net-ssh-multi (~> 1.1)
|
|
58
|
+
ohai (~> 7.0.4)
|
|
59
|
+
pry (~> 0.9)
|
|
60
|
+
rest-client (>= 1.0.4, < 1.7.0)
|
|
61
|
+
yajl-ruby (~> 1.1)
|
|
62
|
+
chef-zero (2.1.4)
|
|
63
|
+
hashie (~> 2.0)
|
|
64
|
+
json
|
|
65
|
+
mixlib-log (~> 1.3)
|
|
66
|
+
rack
|
|
67
|
+
coderay (1.1.0)
|
|
68
|
+
dep-selector-libgecode (1.0.1)
|
|
69
|
+
dep_selector (1.0.3)
|
|
70
|
+
dep-selector-libgecode (~> 1.0)
|
|
71
|
+
ffi (~> 1.9)
|
|
72
|
+
diff-lcs (1.2.5)
|
|
73
|
+
erubis (2.7.0)
|
|
74
|
+
faraday (0.9.0)
|
|
75
|
+
multipart-post (>= 1.2, < 3)
|
|
76
|
+
ffi (1.9.3)
|
|
77
|
+
hashie (2.1.1)
|
|
78
|
+
highline (1.6.21)
|
|
79
|
+
hitimes (1.2.1)
|
|
80
|
+
ipaddress (0.8.0)
|
|
81
|
+
json (1.8.1)
|
|
82
|
+
method_source (0.8.2)
|
|
83
|
+
mime-types (1.25.1)
|
|
84
|
+
minitar (0.5.4)
|
|
85
|
+
mixlib-authentication (1.3.0)
|
|
86
|
+
mixlib-log
|
|
87
|
+
mixlib-cli (1.5.0)
|
|
88
|
+
mixlib-config (2.1.0)
|
|
89
|
+
mixlib-log (1.6.0)
|
|
90
|
+
mixlib-shellout (1.4.0)
|
|
91
|
+
multipart-post (2.0.0)
|
|
92
|
+
net-http-persistent (2.9.4)
|
|
93
|
+
net-ssh (2.9.1)
|
|
94
|
+
net-ssh-gateway (1.2.0)
|
|
95
|
+
net-ssh (>= 2.6.5)
|
|
96
|
+
net-ssh-multi (1.2.0)
|
|
97
|
+
net-ssh (>= 2.6.5)
|
|
98
|
+
net-ssh-gateway (>= 1.2.0)
|
|
99
|
+
nio4r (1.0.0)
|
|
100
|
+
octokit (3.1.0)
|
|
101
|
+
sawyer (~> 0.5.3)
|
|
102
|
+
ohai (7.0.4)
|
|
103
|
+
ipaddress
|
|
104
|
+
mime-types (~> 1.16)
|
|
105
|
+
mixlib-cli
|
|
106
|
+
mixlib-config (~> 2.0)
|
|
107
|
+
mixlib-log
|
|
108
|
+
mixlib-shellout (~> 1.2)
|
|
109
|
+
systemu (~> 2.5.2)
|
|
110
|
+
yajl-ruby
|
|
111
|
+
parser (2.1.9)
|
|
112
|
+
ast (>= 1.1, < 3.0)
|
|
113
|
+
slop (~> 3.4, >= 3.4.5)
|
|
114
|
+
powerpack (0.0.9)
|
|
115
|
+
pry (0.9.12.6)
|
|
116
|
+
coderay (~> 1.0)
|
|
117
|
+
method_source (~> 0.8)
|
|
118
|
+
slop (~> 3.4)
|
|
119
|
+
rack (1.5.2)
|
|
120
|
+
rainbow (2.0.0)
|
|
121
|
+
rake (0.9.6)
|
|
122
|
+
rest-client (1.6.7)
|
|
123
|
+
mime-types (>= 1.16)
|
|
124
|
+
retryable (1.3.5)
|
|
125
|
+
ridley (3.1.0)
|
|
126
|
+
addressable
|
|
127
|
+
buff-config (~> 0.2)
|
|
128
|
+
buff-extensions (~> 0.3)
|
|
129
|
+
buff-ignore (~> 1.1)
|
|
130
|
+
buff-shell_out (~> 0.1)
|
|
131
|
+
celluloid (~> 0.16.0.pre)
|
|
132
|
+
celluloid-io (~> 0.16.0.pre)
|
|
133
|
+
erubis
|
|
134
|
+
faraday (~> 0.9.0)
|
|
135
|
+
hashie (>= 2.0.2)
|
|
136
|
+
json (>= 1.7.7)
|
|
137
|
+
mixlib-authentication (>= 1.3.0)
|
|
138
|
+
net-http-persistent (>= 2.8)
|
|
139
|
+
retryable
|
|
140
|
+
semverse (~> 1.1)
|
|
141
|
+
varia_model (~> 0.3)
|
|
142
|
+
rspec (0.9.4)
|
|
143
|
+
rspec-core (2.14.8)
|
|
144
|
+
rspec-expectations (2.14.5)
|
|
145
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
|
146
|
+
rspec-mocks (2.14.6)
|
|
147
|
+
rubocop (0.22.0)
|
|
148
|
+
json (>= 1.7.7, < 2)
|
|
149
|
+
parser (~> 2.1.9)
|
|
150
|
+
powerpack (~> 0.0.6)
|
|
151
|
+
rainbow (>= 1.99.1, < 3.0)
|
|
152
|
+
ruby-progressbar (~> 1.4)
|
|
153
|
+
ruby-progressbar (1.5.1)
|
|
154
|
+
sawyer (0.5.4)
|
|
155
|
+
addressable (~> 2.3.5)
|
|
156
|
+
faraday (~> 0.8, < 0.10)
|
|
157
|
+
semverse (1.1.0)
|
|
158
|
+
slop (3.5.0)
|
|
159
|
+
solve (1.2.0)
|
|
160
|
+
dep_selector (~> 1.0)
|
|
161
|
+
semverse (~> 1.1)
|
|
162
|
+
systemu (2.5.2)
|
|
163
|
+
thor (0.19.1)
|
|
164
|
+
timers (2.0.0)
|
|
165
|
+
hitimes
|
|
166
|
+
varia_model (0.3.2)
|
|
167
|
+
buff-extensions (~> 0.2)
|
|
168
|
+
hashie (>= 2.0.2)
|
|
169
|
+
yajl-ruby (1.2.0)
|
|
170
|
+
|
|
171
|
+
PLATFORMS
|
|
172
|
+
ruby
|
|
173
|
+
|
|
174
|
+
DEPENDENCIES
|
|
175
|
+
berks2env!
|
|
176
|
+
rake (~> 0)
|
|
177
|
+
rspec (~> 0)
|
|
178
|
+
rspec-core (~> 2.14.8)
|
|
179
|
+
rspec-expectations (~> 2.14.5)
|
|
180
|
+
rspec-mocks (~> 2.14.6)
|
|
181
|
+
rubocop (~> 0.21)
|
data/README.md
CHANGED
|
@@ -21,7 +21,7 @@ https://www.youtube.com/watch?v=L__8o02od6Q
|
|
|
21
21
|
Use [this link](http://youtu.be/L__8o02od6Q?t=21m16s) to jump directly to the section I talk about Jenkins/CI workflows
|
|
22
22
|
If you just want the original script we used on CI (per the talk above) - you can [find it here](https://github.com/petecheslock/berks2env/blob/4fa764134c11912a9c82391540903697fe7fe5a6/berks2env.rb)
|
|
23
23
|
|
|
24
|
-
* Going to eventually convert this into a rubygem
|
|
24
|
+
* ~~Going to eventually convert this into a rubygem~~
|
|
25
25
|
* Going to support another command option to injest json into the resultant environment json
|
|
26
26
|
* General cleanup and refactor to make it more flexible.
|
|
27
27
|
* This is raw and has only a single specific use case - Watch my talk if you want
|
data/lib/berks2env/version.rb
CHANGED
data/spec/berks2env_spec.rb
CHANGED
|
@@ -2,12 +2,23 @@ require 'spec_helper'
|
|
|
2
2
|
|
|
3
3
|
describe Convert do
|
|
4
4
|
before :each do
|
|
5
|
-
@convert = Convert.new(
|
|
5
|
+
@convert = Convert.new('1.2.3', 'Berksfile.stub')
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
-
describe
|
|
9
|
-
it
|
|
8
|
+
describe '#new' do
|
|
9
|
+
it 'takes two parameters and returns a Convert object' do
|
|
10
10
|
@convert.should be_an_instance_of Convert
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
|
+
|
|
14
|
+
describe '#initialize' do
|
|
15
|
+
it 'returns the correct branch name' do
|
|
16
|
+
@convert.branch.should eql '1.2.3'
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
it 'returns the correct berkshelf lockfile' do
|
|
20
|
+
@convert.berkslockfile.should eql 'Berksfile.stub'
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
end
|
|
13
24
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: berks2env
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pete Cheslock
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chef
|
|
@@ -153,6 +153,7 @@ files:
|
|
|
153
153
|
- .rubocop.yml
|
|
154
154
|
- .travis.yml
|
|
155
155
|
- Gemfile
|
|
156
|
+
- Gemfile.lock
|
|
156
157
|
- LICENSE
|
|
157
158
|
- README.md
|
|
158
159
|
- Rakefile
|