builderator 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89e14c2393d87e5b4a95b6e08442efde1b56a3d2
4
- data.tar.gz: 5c0e467fc4f9228e7d2c981ecd607c1659072d7f
3
+ metadata.gz: 52ba96400e257cab5d027e0660517fc8f9a441e7
4
+ data.tar.gz: 96427250ed38ca68e25c15e9929688a5b8b0eabd
5
5
  SHA512:
6
- metadata.gz: 87cb9385e02b95d9672ab4fceb21bd905b27e6aeaa142d317e3ef182888851999e0db0400703a86d6d65b2934567715a4509222f701b62cd5097bc866d31254a
7
- data.tar.gz: 0448ea00eb5a00064975a18df49d468e17da249b2eb8cf48ea52109ff0136c8c4b194ffa0bfb2bf2ebddcff2953130e469936a4322412d937a98ab5f69f9a2d0
6
+ metadata.gz: f805d125bf84917a960d10f53b26d34b2ba12553ee82385e45b2879ba21bfa58ce7b55d3519bf85b54ee99a060f20becda48b848d824431a402e6cde918b97b1
7
+ data.tar.gz: ea3ad354a1a0a9e37e7fab78cdb8b491d5010c2db4d374c7bd821f4fb2579a119dceba437938fab90f50ecd435bb7588a9b04ead36ddacb0565318da20e36dd8
data/Gemfile.lock CHANGED
@@ -15,13 +15,13 @@ GEM
15
15
  specs:
16
16
  addressable (2.4.0)
17
17
  ast (2.3.0)
18
- aws-sdk (2.3.13)
19
- aws-sdk-resources (= 2.3.13)
20
- aws-sdk-core (2.3.13)
18
+ aws-sdk (2.3.14)
19
+ aws-sdk-resources (= 2.3.14)
20
+ aws-sdk-core (2.3.14)
21
21
  jmespath (~> 1.0)
22
- aws-sdk-resources (2.3.13)
23
- aws-sdk-core (= 2.3.13)
24
- berkshelf (4.3.3)
22
+ aws-sdk-resources (2.3.14)
23
+ aws-sdk-core (= 2.3.14)
24
+ berkshelf (4.3.5)
25
25
  addressable (~> 2.3, >= 2.3.4)
26
26
  berkshelf-api-client (~> 2.0, >= 2.0.2)
27
27
  buff-config (~> 1.0)
@@ -33,6 +33,7 @@ GEM
33
33
  faraday (~> 0.9)
34
34
  httpclient (~> 2.7)
35
35
  minitar (~> 0.5, >= 0.5.4)
36
+ mixlib-archive (~> 0.1)
36
37
  octokit (~> 4.0)
37
38
  retryable (~> 2.0)
38
39
  ridley (~> 4.5)
@@ -56,30 +57,31 @@ GEM
56
57
  celluloid-io (0.16.2)
57
58
  celluloid (>= 0.16.0)
58
59
  nio4r (>= 1.1.0)
59
- chef (12.5.1)
60
- chef-config (= 12.5.1)
61
- chef-zero (~> 4.2, >= 4.2.2)
60
+ chef (12.7.2)
61
+ chef-config (= 12.7.2)
62
+ chef-zero (~> 4.5)
62
63
  diff-lcs (~> 1.2, >= 1.2.4)
63
64
  erubis (~> 2.7)
64
65
  ffi-yajl (~> 2.2)
65
66
  highline (~> 1.6, >= 1.6.9)
66
- mixlib-authentication (~> 1.3)
67
+ mixlib-authentication (~> 1.4)
67
68
  mixlib-cli (~> 1.4)
68
69
  mixlib-log (~> 1.3)
69
70
  mixlib-shellout (~> 2.0)
70
- net-ssh (~> 2.6)
71
+ net-ssh (>= 2.9, < 4.0)
71
72
  net-ssh-multi (~> 1.1)
72
73
  ohai (>= 8.6.0.alpha.1, < 9)
73
74
  plist (~> 3.1.0)
74
- pry (~> 0.9)
75
- rspec-core (~> 3.2)
76
- rspec-expectations (~> 3.2)
77
- rspec-mocks (~> 3.2)
75
+ proxifier (~> 1.0)
76
+ rspec-core (~> 3.4)
77
+ rspec-expectations (~> 3.4)
78
+ rspec-mocks (~> 3.4)
78
79
  rspec_junit_formatter (~> 0.2.0)
79
80
  serverspec (~> 2.7)
80
81
  specinfra (~> 2.10)
81
82
  syslog-logger (~> 1.6)
82
- chef-config (12.5.1)
83
+ uuidtools (~> 2.1.5)
84
+ chef-config (12.7.2)
83
85
  mixlib-config (~> 2.0)
84
86
  mixlib-shellout (~> 2.0)
85
87
  chef-zero (4.6.2)
@@ -89,7 +91,6 @@ GEM
89
91
  rack
90
92
  uuidtools (~> 2.1)
91
93
  cleanroom (1.0.0)
92
- coderay (1.1.1)
93
94
  dep-selector-libgecode (1.2.0)
94
95
  dep_selector (1.0.3)
95
96
  dep-selector-libgecode (~> 1.0)
@@ -114,8 +115,8 @@ GEM
114
115
  json (1.8.3)
115
116
  json_pure (1.8.3)
116
117
  libyajl2 (1.2.0)
117
- method_source (0.8.2)
118
118
  minitar (0.5.4)
119
+ mixlib-archive (0.1.0)
119
120
  mixlib-authentication (1.4.1)
120
121
  mixlib-log
121
122
  mixlib-cli (1.6.0)
@@ -127,7 +128,7 @@ GEM
127
128
  multipart-post (2.0.0)
128
129
  net-scp (1.2.1)
129
130
  net-ssh (>= 2.6.5)
130
- net-ssh (2.9.4)
131
+ net-ssh (3.1.1)
131
132
  net-ssh-gateway (1.2.0)
132
133
  net-ssh (>= 2.6.5)
133
134
  net-ssh-multi (1.2.1)
@@ -153,10 +154,7 @@ GEM
153
154
  ast (~> 2.2)
154
155
  plist (3.1.0)
155
156
  powerpack (0.1.1)
156
- pry (0.10.3)
157
- coderay (~> 1.1.0)
158
- method_source (~> 0.8.1)
159
- slop (~> 3.4)
157
+ proxifier (1.0.3)
160
158
  rack (1.6.4)
161
159
  rainbow (2.1.0)
162
160
  rake (10.5.0)
@@ -215,7 +213,6 @@ GEM
215
213
  rspec-its
216
214
  specinfra (~> 2.53)
217
215
  sfl (2.2)
218
- slop (3.6.0)
219
216
  solve (2.0.3)
220
217
  molinillo (~> 0.4.2)
221
218
  semverse (~> 1.1)
data/README.md CHANGED
@@ -37,6 +37,31 @@ Configuration can be loaded from DSL files as well as JSON and command line argu
37
37
 
38
38
  Builderator integrates with other tools, including [Berkshelf](http://berkshelf.com), [Vagrant](https://www.vagrantup.com/), and [Packer](https://www.packer.io/), to orchestrate workflows by generating `Berksfile`s, `Vagrantfile`s, and JSON strings for Packer. This means that you can replace all of these files in your project with a single `Buildfile`.
39
39
 
40
+ ### Berkshelf
41
+
42
+ The Berkshelf integration generates a Berksfile. The following configuration
43
+ values are supported.
44
+
45
+ #### solver
46
+
47
+ The generated Berksfile uses the `:gecode` dependency resolver by default. To
48
+ use the `:ruby` solver, add this snippet to your Buildfile.
49
+
50
+ ```ruby
51
+ berkshelf do |berks|
52
+ berks.solver :ruby
53
+ end
54
+ ```
55
+
56
+ For help debugging cookbook dependency issues, you can set the `DEBUG_RESOLVER`
57
+ environment variable and use the `--debug` flag when running `build berks`
58
+ sucommands.
59
+
60
+ ```bash
61
+ export DEBUG_RESOLVER=1
62
+ build berks vendor --debug
63
+ ```
64
+
40
65
  ### Packer
41
66
 
42
67
  The Packer integration generates a Packer JSON configuration and passes it to STDIN of `packer build -`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.7
1
+ 1.1.8
@@ -32,6 +32,10 @@ module Builderator
32
32
  cookbook.add_source 'https://supermarket.chef.io'
33
33
  end
34
34
 
35
+ berkshelf do |berkshelf|
36
+ berkshelf.solver :gecode
37
+ end
38
+
35
39
  aws.region 'us-east-1'
36
40
 
37
41
  profile :default do |profile|
@@ -132,6 +132,10 @@ module Builderator
132
132
  attribute :version
133
133
  end
134
134
 
135
+ namespace :berkshelf do
136
+ attribute :solver
137
+ end
138
+
135
139
  ##
136
140
  # Cookbook build options
137
141
  ##
@@ -16,8 +16,3 @@ module FaradayMiddleware
16
16
  end
17
17
 
18
18
  Faraday::Response.register_middleware :gzip => FaradayMiddleware::Gzip
19
-
20
- # Force Berkshelf to use the gecode dependency solver
21
- require 'solve'
22
-
23
- Solve.engine = :gecode
data/rvm.env CHANGED
@@ -1,14 +1,14 @@
1
- declare -x GEM_HOME="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-2"
2
- declare -x GEM_PATH="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-2:/home/jenkins/.rvm/gems/ruby-2.1.5@global"
1
+ declare -x GEM_HOME="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-0"
2
+ declare -x GEM_PATH="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-0:/home/jenkins/.rvm/gems/ruby-2.1.5@global"
3
3
  declare -x HOME="/home/jenkins"
4
- declare -x HUDSON_COOKIE="e18797dc-72cf-4e64-9f78-1a26e5fe5703"
4
+ declare -x HUDSON_COOKIE="9f5b176e-8e17-4db0-9dd4-67911f3f1a9c"
5
5
  declare -x IRBRC="/home/jenkins/.rvm/rubies/ruby-2.1.5/.irbrc"
6
6
  declare -x LANG="en_US.UTF-8"
7
7
  declare -x LC_ALL="en_US.UTF-8"
8
8
  declare -x MY_RUBY_HOME="/home/jenkins/.rvm/rubies/ruby-2.1.5"
9
9
  declare -x NLSPATH="/usr/dt/lib/nls/msg/%L/%N.cat"
10
10
  declare -x OLDPWD
11
- declare -x PATH="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-2/bin:/home/jenkins/.rvm/gems/ruby-2.1.5@global/bin:/home/jenkins/.rvm/rubies/ruby-2.1.5/bin:/home/jenkins/.rvm/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin"
11
+ declare -x PATH="/home/jenkins/.rvm/gems/ruby-2.1.5@bakery-0/bin:/home/jenkins/.rvm/gems/ruby-2.1.5@global/bin:/home/jenkins/.rvm/rubies/ruby-2.1.5/bin:/home/jenkins/.rvm/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin"
12
12
  declare -x PWD="/home/jenkins/workspace/gem-public-builderator-master"
13
13
  declare -x RUBY_VERSION="ruby-2.1.5"
14
14
  declare -x SHLVL="1"
data/spec/config_spec.rb CHANGED
@@ -8,6 +8,11 @@ module Builderator
8
8
  Config.load(::File.expand_path('../resource/Buildfile', __FILE__))
9
9
  end
10
10
 
11
+ it 'defaults to the gecode solver' do
12
+ Config.compile
13
+ expect(Config.berkshelf.solver).to eq :gecode
14
+ end
15
+
11
16
  it 'loads a DSL file' do
12
17
  expect(Config.layers.length).to eq 1
13
18
  end
@@ -8,3 +8,5 @@ source '<%= s %>'
8
8
  <% cookbook.depends.each do |name, cookbook| -%>
9
9
  cookbook '<%= name %>', '<%= cookbook.fetch(:version, '>= 0.0.0') %>', <%= cookbook.to_hash %>
10
10
  <% end -%>
11
+
12
+ solver :<%= berkshelf.solver %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: builderator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-10 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake