appbundle-updater 0.6.4 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -3
- data/CODE_OF_CONDUCT.md +1 -0
- data/CONTRIBUTING.md +1 -0
- data/Gemfile +6 -0
- data/VERSION +1 -1
- data/bin/appbundle-updater +14 -9
- data/lib/appbundle_updater/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a425b99a26f13d70421f39074a3249de340cf841362d114f38c62f1d20438e3a
|
4
|
+
data.tar.gz: 692e1c592af18e2edec537076ef9f2bbb467a29f06afd4c51800e85023e311a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86e8ececb10f3ba136760b06e865411c4da895c182d27d3a1cb3eb51aa58b05efae21d411ff0b7d8f9f0dc7c2e343fadeedc10f34ba20709ec82dc41aa16b821
|
7
|
+
data.tar.gz: '0895fb5996b35ff305e291a7b14b963b3f74728d74014e7f9933c9c5cf8ca2dd2ca5781562a1ca270e8603983eaa8f42556e49e267a7b6b2827217f9d48fe9e1'
|
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
# appbundle-updater Change Log
|
2
2
|
|
3
|
-
<!-- latest_release 0.6.
|
4
|
-
## [v0.6.
|
3
|
+
<!-- latest_release 0.6.5 -->
|
4
|
+
## [v0.6.5](https://github.com/chef/appbundle-updater/tree/v0.6.5) (2019-01-28)
|
5
5
|
|
6
6
|
#### Merged Pull Requests
|
7
|
-
-
|
7
|
+
- Add yard deps that rake task uses [#34](https://github.com/chef/appbundle-updater/pull/34) ([tas50](https://github.com/tas50))
|
8
8
|
<!-- latest_release -->
|
9
9
|
|
10
10
|
<!-- release_rollup since=0.6.2 -->
|
11
11
|
### Changes not yet released to rubygems.org
|
12
12
|
|
13
13
|
#### Merged Pull Requests
|
14
|
+
- Add yard deps that rake task uses [#34](https://github.com/chef/appbundle-updater/pull/34) ([tas50](https://github.com/tas50)) <!-- 0.6.5 -->
|
14
15
|
- i don't believe this gsub is useful [#33](https://github.com/chef/appbundle-updater/pull/33) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 0.6.3 -->
|
15
16
|
- fix pulling tags [#32](https://github.com/chef/appbundle-updater/pull/32) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 0.6.3 -->
|
16
17
|
<!-- release_rollup -->
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Please refer to the Chef Community Code of Conduct at https://www.chef.io/code-of-conduct/
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Please refer to https://github.com/chef/chef/blob/master/CONTRIBUTING.md
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.5
|
data/bin/appbundle-updater
CHANGED
@@ -53,14 +53,14 @@ def run(cmd)
|
|
53
53
|
ENV_KEYS.each { |key| ENV["_YOLO_#{key}"] = ENV[key]; ENV.delete(key) }
|
54
54
|
ENV["PATH"] = bin_dir.to_s + File::PATH_SEPARATOR + ENV["_YOLO_PATH"]
|
55
55
|
puts " running: #{cmd}"
|
56
|
-
output = `#{cmd} 2>&1` #FIXME: bash/zsh-ism, will not work on csh
|
56
|
+
output = `#{cmd} 2>&1` # FIXME: bash/zsh-ism, will not work on csh
|
57
57
|
unless $?.exited? && $?.exitstatus == 0
|
58
58
|
raise("Command [#{cmd}] failed!\n\n---BEGIN OUTPUT--\n#{output}\n---END OUTPUT--\n")
|
59
59
|
end
|
60
60
|
ENV_KEYS.each { |key| ENV[key] = ENV.delete("_YOLO_#{key}") }
|
61
61
|
end
|
62
62
|
|
63
|
-
TAR_LONGLINK = "././@LongLink"
|
63
|
+
TAR_LONGLINK = "././@LongLink".freeze
|
64
64
|
|
65
65
|
def install_package_dependencies
|
66
66
|
banner("Installing Packages")
|
@@ -78,7 +78,7 @@ def install_package_dependencies
|
|
78
78
|
when /suse/
|
79
79
|
run("zypper --non-interactive install gcc gcc-c++ make git")
|
80
80
|
else
|
81
|
-
puts "
|
81
|
+
puts "I do not know how to install compilers and git on this platform..."
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
@@ -97,17 +97,17 @@ def extract_tgz(file, destination = ".")
|
|
97
97
|
dest ||= File.join destination, entry.full_name
|
98
98
|
if entry.directory? || (entry.header.typeflag == "" && entry.full_name.end_with?("/"))
|
99
99
|
File.delete dest if File.file? dest
|
100
|
-
FileUtils.mkdir_p dest, :
|
100
|
+
FileUtils.mkdir_p dest, mode: entry.header.mode, verbose: false
|
101
101
|
elsif entry.file? || (entry.header.typeflag == "" && !entry.full_name.end_with?("/"))
|
102
102
|
FileUtils.rm_rf dest if File.directory? dest
|
103
103
|
File.open dest, "wb" do |f|
|
104
104
|
f.print entry.read
|
105
105
|
end
|
106
|
-
FileUtils.chmod entry.header.mode, dest, :
|
107
|
-
elsif entry.header.typeflag == "2" #Symlink!
|
106
|
+
FileUtils.chmod entry.header.mode, dest, verbose: false
|
107
|
+
elsif entry.header.typeflag == "2" # Symlink!
|
108
108
|
File.symlink entry.header.linkname, dest
|
109
109
|
else
|
110
|
-
puts "
|
110
|
+
puts "Unknown tar entry: #{entry.full_name} type: #{entry.header.typeflag}."
|
111
111
|
end
|
112
112
|
dest = nil
|
113
113
|
end
|
@@ -122,7 +122,7 @@ end
|
|
122
122
|
|
123
123
|
chef_install_command =
|
124
124
|
if windows?
|
125
|
-
"#{bin_dir.join("gem")} build chef-windows.gemspec & #{bin_dir.join("gem")} install chef*.gem --no-
|
125
|
+
"#{bin_dir.join("gem")} build chef-windows.gemspec & #{bin_dir.join("gem")} install chef*.gem --no-document"
|
126
126
|
else
|
127
127
|
"#{bin_dir.join("rake")} install"
|
128
128
|
end
|
@@ -253,7 +253,9 @@ class Updater
|
|
253
253
|
|
254
254
|
banner("Updating appbundler binstubs for #{app}")
|
255
255
|
Dir.chdir(app_dir) do
|
256
|
-
|
256
|
+
cmd = "#{bin_dir.join("appbundler")} #{app_dir} #{chefdk.join("bin")}"
|
257
|
+
cmd += " --extra-bin-files #{options[:extra_bin_files]}" if options[:extra_bin_files]
|
258
|
+
ruby(cmd)
|
257
259
|
end
|
258
260
|
|
259
261
|
banner("Finished!")
|
@@ -298,6 +300,9 @@ class CLI
|
|
298
300
|
puts opts
|
299
301
|
exit
|
300
302
|
end
|
303
|
+
opts.on("-E", "--extra-bin-files BIN1,BIN2") do |e|
|
304
|
+
options[:extra_bin_files] = e
|
305
|
+
end
|
301
306
|
opts.separator("")
|
302
307
|
opts.separator("App names:")
|
303
308
|
CHEFDK_APPS.each { |a| opts.separator(" * #{a.name}") }
|
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: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lamont-granquist
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Updates appbundled apps in Chef's omnibus packages
|
14
14
|
email:
|
@@ -19,6 +19,8 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- CHANGELOG.md
|
22
|
+
- CODE_OF_CONDUCT.md
|
23
|
+
- CONTRIBUTING.md
|
22
24
|
- Gemfile
|
23
25
|
- LICENSE
|
24
26
|
- README.md
|
@@ -48,8 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
50
|
- !ruby/object:Gem::Version
|
49
51
|
version: '0'
|
50
52
|
requirements: []
|
51
|
-
|
52
|
-
rubygems_version: 2.7.6
|
53
|
+
rubygems_version: 3.0.2
|
53
54
|
signing_key:
|
54
55
|
specification_version: 4
|
55
56
|
summary: Updates appbundled apps in Chef's omnibus packages
|