appbundle-updater 0.6.18 → 1.0.0

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
  SHA256:
3
- metadata.gz: 7242b26435741d855c0027ae555306d22afe1bc435dd0dedba545eb7a8e2ea2e
4
- data.tar.gz: a7f8fd4aaae104a61f3db9d65da9ed4f43e7a8ef74a885ef28e285b979eea2be
3
+ metadata.gz: 8138b8ba721779391f93cb5af5c03e4ac34e95af1181a3d6ac38478f010442be
4
+ data.tar.gz: c1694ec12f05275e409cbc51df222771188d20c240320c0b99da6c37e5ab6403
5
5
  SHA512:
6
- metadata.gz: 05f098020ccc36956ec963e62e55204d7fe93405956839db8e74afb5a932523c20c9699f25edd30f80cbde3a4b815bc9968775cb6c11b6039a37ccce49dd5730
7
- data.tar.gz: 15603d8d4f33006e0dd1f9cd8fd60e1425ffcc336e4af167259e450414448f247a8ad6585d930c56077beb1ed70978e8f8257b391f3c8371356c60b2c4257320
6
+ metadata.gz: dd87244b8046dc16cf9822ee5020221ca23e4edcf7f5f9c03260dc31bd163de65b09b796b51ccd1cb1eb082d27a7c262d6790dee09c10f03ac903ecae495557b
7
+ data.tar.gz: 3173f62a44bfe6737c5d4a76adc170cc3d90519df4eb8a68c6f071da5bf6017541d89f210f2d67008702057cf6907f56b4bb43e06f639f1e7ae26354f76e0589
@@ -1,25 +1,30 @@
1
1
  # appbundle-updater Change Log
2
2
 
3
- <!-- latest_release 0.6.18 -->
4
- ## [v0.6.18](https://github.com/chef/appbundle-updater/tree/v0.6.18) (2020-03-11)
3
+ <!-- latest_release 1.0.0 -->
4
+ ## [v1.0.0](https://github.com/chef/appbundle-updater/tree/v1.0.0) (2020-03-11)
5
5
 
6
6
  #### Merged Pull Requests
7
- - need output logging so that we can debug [#47](https://github.com/chef/appbundle-updater/pull/47) ([lamont-granquist](https://github.com/lamont-granquist))
7
+ - Time to add chef-15 support [#48](https://github.com/chef/appbundle-updater/pull/48) ([lamont-granquist](https://github.com/lamont-granquist))
8
8
  <!-- latest_release -->
9
9
 
10
- <!-- release_rollup since=0.6.17 -->
10
+ <!-- release_rollup since=0.6.18 -->
11
11
  ### Changes not yet released to rubygems.org
12
12
 
13
13
  #### Merged Pull Requests
14
- - need output logging so that we can debug [#47](https://github.com/chef/appbundle-updater/pull/47) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 0.6.18 -->
14
+ - Time to add chef-15 support [#48](https://github.com/chef/appbundle-updater/pull/48) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 1.0.0 -->
15
15
  <!-- release_rollup -->
16
16
 
17
17
  <!-- latest_stable_release -->
18
+ ## [v0.6.18](https://github.com/chef/appbundle-updater/tree/v0.6.18) (2020-03-11)
19
+
20
+ #### Merged Pull Requests
21
+ - need output logging so that we can debug [#47](https://github.com/chef/appbundle-updater/pull/47) ([lamont-granquist](https://github.com/lamont-granquist))
22
+ <!-- latest_stable_release -->
23
+
18
24
  ## [v0.6.17](https://github.com/chef/appbundle-updater/tree/v0.6.17) (2019-09-30)
19
25
 
20
26
  #### Merged Pull Requests
21
27
  - Don&#39;t exclude the development group for ohai [#45](https://github.com/chef/appbundle-updater/pull/45) ([tas50](https://github.com/tas50))
22
- <!-- latest_stable_release -->
23
28
 
24
29
  ## [v0.6.16](https://github.com/chef/appbundle-updater/tree/v0.6.16) (2019-09-30)
25
30
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.18
1
+ 1.0.0
@@ -119,7 +119,12 @@ def extract_tgz(file, destination = ".")
119
119
  end
120
120
  end
121
121
 
122
- App = Struct.new(:name, :repo, :bundle_without, :install_command) do
122
+ App = Struct.new(:name, :repo, :bundle_without, :install_command, :gems) do
123
+ def initialize(*)
124
+ super
125
+ self.gems ||= {}
126
+ end
127
+
123
128
  def to_s
124
129
  name
125
130
  end
@@ -143,13 +148,34 @@ CHEFDK_APPS = [
143
148
  "chef",
144
149
  "chef/chef",
145
150
  "development docgen chefstyle",
146
- chef_install_command
151
+ "#{bin_dir.join("bundle")} install --without server,docgen,maintenance,pry,travis,integration,ci,chefstyle",
152
+ {
153
+ "chef" => %w{server docgen maintenance pry travis integration ci chefstyle},
154
+ "chef-bin" => %w{server docgen maintenance pry travis integration ci chefstyle},
155
+ "ohai" => %w{server docgen maintenance pry travis integration ci chefstyle},
156
+ "inspec-core-bin" => %w{server docgen maintenance pry travis integration ci chefstyle},
157
+ },
147
158
  ),
148
159
  App.new(
149
160
  "chef-dk",
150
161
  "chef/chef-dk",
151
162
  "development test",
152
- "#{bin_dir.join("rake")} install"
163
+ "#{bin_dir.join("bundle")} install",
164
+ {
165
+ "chef" => %w{docgen chefstyle omnibus_package},
166
+ "foodcritic" => %w{development test},
167
+ "test-kitchen" => %w{changelog debug docs development},
168
+ "inspec" => %w{deploy tools maintenance integration},
169
+ "chef-run" => %w{changelog docs debug},
170
+ "chef-cli" => %w{changelog docs debug},
171
+ "berkshelf" => %w{changelog docs debug development},
172
+ "chef-bin" => %w{changelog},
173
+ "chef-apply" => %w{changelog},
174
+ "chef-vault" => %w{changelog},
175
+ "ohai" => %w{changelog},
176
+ "opscode-pushy-client" => %w{changelog},
177
+ "cookstyle" => %w{changelog},
178
+ },
153
179
  ),
154
180
  App.new(
155
181
  "chef-vault",
@@ -190,7 +216,7 @@ CHEFDK_APPS = [
190
216
  ].freeze
191
217
 
192
218
  class Updater
193
- attr_reader :app, :ref, :tarball, :repo
219
+ attr_reader :app, :ref, :tarball, :repo, :gems
194
220
 
195
221
  def initialize(options)
196
222
  @app = options[:app]
@@ -199,6 +225,7 @@ class Updater
199
225
  @extra_bin_files = options[:extra_bin_files]
200
226
  @binstubs_source = options[:binstubs_source]
201
227
  @repo = options[:repo] || @app.repo
228
+ @gems = @app.gems
202
229
  end
203
230
 
204
231
  def start
@@ -258,11 +285,23 @@ class Updater
258
285
  end
259
286
 
260
287
  banner("Updating appbundler binstubs for #{app}")
261
- Dir.chdir(app_dir) do
262
- cmd = "#{bin_dir.join("appbundler")} #{app_dir} #{chefdk.join("bin")}"
263
- cmd += " --extra-bin-files #{@extra_bin_files}" if @extra_bin_files
264
- cmd += " --binstubs-source #{@binstubs_source}" if @binstubs_source
265
- ruby(cmd)
288
+ if gems.empty?
289
+ Dir.chdir(app_dir) do
290
+ cmd = "#{bin_dir.join("appbundler")} #{app_dir} #{chefdk.join("bin")}"
291
+ cmd += " --extra-bin-files #{@extra_bin_files}" if @extra_bin_files
292
+ cmd += " --binstubs-source #{@binstubs_source}" if @binstubs_source
293
+ ruby(cmd)
294
+ end
295
+ else
296
+ gems.each do |gem_name, without|
297
+ Dir.chdir(app_dir) do
298
+ cmd = "#{bin_dir.join("appbundler")} #{app_dir} #{chefdk.join("bin")} #{gem_name}"
299
+ cmd += " --without #{@without.join(",")}" if @without
300
+ cmd += " --extra-bin-files #{@extra_bin_files}" if @extra_bin_files
301
+ cmd += " --binstubs-source #{@binstubs_source}" if @binstubs_source
302
+ ruby(cmd)
303
+ end
304
+ end
266
305
  end
267
306
 
268
307
  banner("Finished!")
@@ -1,3 +1,3 @@
1
1
  module AppbundleUpdater
2
- VERSION = "0.6.18".freeze
2
+ VERSION = "1.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appbundle-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.18
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist