image_builder 0.0.10 → 0.0.11

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
  SHA1:
3
- metadata.gz: 4b2463f606b3ccf00cf2d74b75194b598f836e83
4
- data.tar.gz: 68748f932594bf39ad12cdc4a78f679f9f01176e
3
+ metadata.gz: 690fa3f0bd68eada1510fc714e3455430d6be51a
4
+ data.tar.gz: 434f6184986ea8d455a0038a7b87bed14e2e9946
5
5
  SHA512:
6
- metadata.gz: 8a8df915997bfd052aaf99633b8c84ca53183f783285707d61c23775a252a666ae655f7da239f49061d1862eba6c70a9c3fedb01e0f2c3bc7d8fd67435d34043
7
- data.tar.gz: e9d094257a4481c96c8154c7534c3f6f412f9c7550a2300e39846a2dfe9fa99508c7d151af73d83f1ccc8d08ea99f11df7dc9015c293d15fc63c3983357cd4c9
6
+ metadata.gz: 5a593a50eadbf19c77e35f8702a80a4bcdba41965229f7404ee5e4fa43d999563b1fb5e987ff860d4e65be80c6399744cdfbe39cac8560b9dce02969b37b6650
7
+ data.tar.gz: d003f07ea5bbede50d25bb509d82170e7be5add7675a15884811bab738e2be16e35f6d94769345ee59a21f62cf31d5bd4acf3d4a1c824e5438e23e2197b410c5
@@ -60,8 +60,11 @@ module ImageBuilder
60
60
  def packer_hash
61
61
  hash = { type: @type }
62
62
 
63
- @install_command = 'curl -L https://www.opscode.com/chef/install.sh | ' \
64
- '{{if .Sudo}}sudo{{end}} bash -s -- -v ' + @chef_version unless @chef_version.nil? && @install_command.nil?
63
+ unless @chef_version.nil? && @install_command.nil?
64
+ @install_command = 'curl -L https://www.opscode.com/chef/install.sh | '
65
+ @install_command += 'sudo ' unless @prevent_sudo
66
+ @install_command += 'bash -s -- -v ' + @chef_version
67
+ end
65
68
 
66
69
  attr_to_hash(hash, :config_template)
67
70
  attr_to_hash(hash, :execute_command)
@@ -1,4 +1,4 @@
1
1
  # Generic top-level module comment
2
2
  module ImageBuilder
3
- VERSION = '0.0.10'
3
+ VERSION = '0.0.11'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Morris