kitchen-appbundle-updater 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 7488673b66cb66cadc310881c0456274b1210085
4
- data.tar.gz: 92f3263f36250ece0b18642158b678c88f9eb897
3
+ metadata.gz: 6f1e3e2cdb22df6a534451c7cadbff7a6b754563
4
+ data.tar.gz: 503d5b89219f421bcc9a5e47354b1e159991c9ce
5
5
  SHA512:
6
- metadata.gz: 32fed6540a8bbd24dd7f28c3f55d72547029e59a2aa396e27bf59cce4ee52803659fa788db403e388f438ab3da86f384d8fb3054fbb643d87f06226f79474d2a
7
- data.tar.gz: a00282633f1960b67dbbe2014f673d22825ecf8811a3c2ccff8330d9f33cd27f21529be260e19d3d7c6daac81d39ef43f248d8b6fc955cab2b9660fc65717fdd
6
+ metadata.gz: 41f1317f6374ff4d2f3a310652774eb3acee6686e5b43ca4845f751aafd2b2230ed3092338fcc9b33a0526a671863031cb2d4c230f70b44ca5743351a56cbe46
7
+ data.tar.gz: 0f8c77166167b99819081f5f7e375c689a23375fc87d5a64cfb5d5903b75b9aff61430ddc9bddca271b12c886fe3e6941e8bb9bf28be32642f3f3c53e0ac8db9
data/README.md CHANGED
@@ -8,6 +8,11 @@ is currently no support for `chef-solo`.
8
8
  ### Test-Kitchen
9
9
  This provider requires [Test-Kitchen](https://github.com/test-kitchen/test-kitchen) `~> 1.4`.
10
10
 
11
+ ## Supported Distros
12
+
13
+ * Tested on Ubuntu and Windows
14
+ * Should work on any omnibus-chef install (Debian, RHEL, SuSE, Solaris, AIX, Custom Builds, etc)
15
+
11
16
  ## <a name="installation"></a> Installation and Setup
12
17
  Add the following to your Gemfile:
13
18
  ```ruby
@@ -1,3 +1,3 @@
1
1
  class KitchenAppbundleUpdater
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -8,16 +8,19 @@ module Kitchen
8
8
  default_config :github_repo, "chef"
9
9
 
10
10
  def prepare_command
11
+ ruby_bin = remote_path_join(config[:ruby_bindir], "ruby").
12
+ tap { |path| path.concat(".exe") if windows_os? }
11
13
  gem_bin = remote_path_join(config[:ruby_bindir], "gem").
12
14
  tap { |path| path.concat(".bat") if windows_os? }
13
- appbundle_updater_bin = remote_path_join(config[:ruby_bindir], "appbundle-updater").
14
- tap { |path| path.concat(".bat") if windows_os? }
15
+ appbundle_updater_bin = remote_path_join(config[:ruby_bindir], "appbundle-updater")
16
+ # tap { |path| path.concat(".bat") if windows_os? }
15
17
  vars = [
16
18
  shell_var("refname", config[:refname]),
17
19
  shell_var("github_owner", config[:github_owner]),
18
20
  shell_var("github_repo", config[:github_repo]),
21
+ shell_var("ruby", sudo(ruby_bin)),
19
22
  shell_var("gem", sudo(gem_bin)),
20
- shell_var("appbundle_updater", sudo(appbundle_updater_bin)),
23
+ shell_var("appbundle_updater", appbundle_updater_bin),
21
24
  ].join("\n").concat("\n")
22
25
 
23
26
  my_shell_code_from_file(vars, "chef_base_updater")
@@ -1,4 +1,6 @@
1
1
  $ErrorActionPreference = "Stop";
2
2
 
3
+ Write-Host "-----> Installing appbundle-updater gem`n"
3
4
  & "$gem" install appbundle-updater
4
- & "$appbundle_updater" chef chef "$refname" --tarball --github "$github_owner/$github_repo"
5
+ Write-Host "-----> Running appbundle-updater to upgrade chef inside omnibus-chef (takes awhile)`n"
6
+ & "$ruby" "$appbundle_updater" chef chef "$refname" --tarball --github "$github_owner/$github_repo"
@@ -1,4 +1,4 @@
1
1
  set -e
2
2
 
3
3
  $gem install appbundle-updater
4
- $appbundle_updater chef chef $refname --tarball --github $github_owner/$github_repo
4
+ $ruby $appbundle_updater chef chef $refname --tarball --github $github_owner/$github_repo
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-appbundle-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Mundrawala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-28 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,8 +122,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.4.3
125
+ rubygems_version: 2.4.8
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: A Test Kitchen Driver for Appbundle-updater
129
129
  test_files: []
130
+ has_rdoc: