appbundle-updater 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8138b8ba721779391f93cb5af5c03e4ac34e95af1181a3d6ac38478f010442be
4
- data.tar.gz: c1694ec12f05275e409cbc51df222771188d20c240320c0b99da6c37e5ab6403
3
+ metadata.gz: 564359a1965489389eb212b845717d8480be3a2ff50e2d2cd8afe1735ac862cc
4
+ data.tar.gz: 2f656821e47524973a202db4df04fb09b0237263bc4ab775d24700045575349c
5
5
  SHA512:
6
- metadata.gz: dd87244b8046dc16cf9822ee5020221ca23e4edcf7f5f9c03260dc31bd163de65b09b796b51ccd1cb1eb082d27a7c262d6790dee09c10f03ac903ecae495557b
7
- data.tar.gz: 3173f62a44bfe6737c5d4a76adc170cc3d90519df4eb8a68c6f071da5bf6017541d89f210f2d67008702057cf6907f56b4bb43e06f639f1e7ae26354f76e0589
6
+ metadata.gz: 0506654561257d24974015a4caa82aaff2efbd5b3ec29c8892914de8cc9edcc0dd7ff71cdbc81457249f851bfc80c19f742397ab059ca0d98a79d1b2ea3e4b2d
7
+ data.tar.gz: bcbe64103bbb307cb722b2b128b2653aa836b0048e9eb0e82a690dad1c437155ddf889b6cda95b94537e382815d0e89175655232e67b1f15790c172832d4cd53
@@ -1,25 +1,30 @@
1
1
  # appbundle-updater Change Log
2
2
 
3
- <!-- latest_release 1.0.0 -->
4
- ## [v1.0.0](https://github.com/chef/appbundle-updater/tree/v1.0.0) (2020-03-11)
3
+ <!-- latest_release 1.0.1 -->
4
+ ## [v1.0.1](https://github.com/chef/appbundle-updater/tree/v1.0.1) (2020-03-12)
5
5
 
6
6
  #### Merged Pull Requests
7
- - Time to add chef-15 support [#48](https://github.com/chef/appbundle-updater/pull/48) ([lamont-granquist](https://github.com/lamont-granquist))
7
+ - more chef-15 updates [#49](https://github.com/chef/appbundle-updater/pull/49) ([lamont-granquist](https://github.com/lamont-granquist))
8
8
  <!-- latest_release -->
9
9
 
10
- <!-- release_rollup since=0.6.18 -->
10
+ <!-- release_rollup since=1.0.0 -->
11
11
  ### Changes not yet released to rubygems.org
12
12
 
13
13
  #### Merged Pull Requests
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 -->
14
+ - more chef-15 updates [#49](https://github.com/chef/appbundle-updater/pull/49) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 1.0.1 -->
15
15
  <!-- release_rollup -->
16
16
 
17
17
  <!-- latest_stable_release -->
18
+ ## [v1.0.0](https://github.com/chef/appbundle-updater/tree/v1.0.0) (2020-03-11)
19
+
20
+ #### Merged Pull Requests
21
+ - Time to add chef-15 support [#48](https://github.com/chef/appbundle-updater/pull/48) ([lamont-granquist](https://github.com/lamont-granquist))
22
+ <!-- latest_stable_release -->
23
+
18
24
  ## [v0.6.18](https://github.com/chef/appbundle-updater/tree/v0.6.18) (2020-03-11)
19
25
 
20
26
  #### Merged Pull Requests
21
27
  - 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
28
 
24
29
  ## [v0.6.17](https://github.com/chef/appbundle-updater/tree/v0.6.17) (2019-09-30)
25
30
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -119,7 +119,7 @@ def extract_tgz(file, destination = ".")
119
119
  end
120
120
  end
121
121
 
122
- App = Struct.new(:name, :repo, :bundle_without, :install_command, :gems) do
122
+ App = Struct.new(:name, :repo, :bundle_without, :install_commands, :gems) do
123
123
  def initialize(*)
124
124
  super
125
125
  self.gems ||= {}
@@ -147,8 +147,8 @@ CHEFDK_APPS = [
147
147
  App.new(
148
148
  "chef",
149
149
  "chef/chef",
150
- "development docgen chefstyle",
151
- "#{bin_dir.join("bundle")} install --without server,docgen,maintenance,pry,travis,integration,ci,chefstyle",
150
+ "server docgen maintenance pry travis integration ci chefstyle",
151
+ chef_install_command,
152
152
  {
153
153
  "chef" => %w{server docgen maintenance pry travis integration ci chefstyle},
154
154
  "chef-bin" => %w{server docgen maintenance pry travis integration ci chefstyle},
@@ -216,7 +216,7 @@ CHEFDK_APPS = [
216
216
  ].freeze
217
217
 
218
218
  class Updater
219
- attr_reader :app, :ref, :tarball, :repo, :gems
219
+ attr_reader :app, :ref, :tarball, :repo, :gems, :install_commands
220
220
 
221
221
  def initialize(options)
222
222
  @app = options[:app]
@@ -226,6 +226,7 @@ class Updater
226
226
  @binstubs_source = options[:binstubs_source]
227
227
  @repo = options[:repo] || @app.repo
228
228
  @gems = @app.gems
229
+ @install_commands = @app.install_commands
229
230
  end
230
231
 
231
232
  def start
@@ -281,7 +282,9 @@ class Updater
281
282
 
282
283
  banner("Installing gem")
283
284
  Dir.chdir(app_dir) do
284
- ruby("#{bin_dir.join("bundle")} exec #{app.install_command}")
285
+ Array(install_commands).each do |command|
286
+ ruby("#{bin_dir.join("bundle")} exec #{command}")
287
+ end
285
288
  end
286
289
 
287
290
  banner("Updating appbundler binstubs for #{app}")
@@ -1,3 +1,3 @@
1
1
  module AppbundleUpdater
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appbundle-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2020-03-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Updates appbundled apps in Chef's omnibus packages
14
14
  email: