kitchen-appbundle-updater 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/kitchen-appbundle-updater/version.rb +1 -1
- data/lib/kitchen/provisioner/chef_github.rb +6 -3
- data/support/chef_base_updater.ps1 +3 -1
- data/support/chef_base_updater.sh +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f1e3e2cdb22df6a534451c7cadbff7a6b754563
|
4
|
+
data.tar.gz: 503d5b89219f421bcc9a5e47354b1e159991c9ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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",
|
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
|
-
|
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"
|
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.
|
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-
|
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.
|
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:
|