ops_build 1.1.12 → 1.1.13

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: e9a43e19adee395a6997df8eb2aeb32ac96baad0
4
- data.tar.gz: 6a3661526563576ce84831dd42809fda46c6a28a
3
+ metadata.gz: ad3c685d2ca93c2f434a07d6fbb997d52cc45bc9
4
+ data.tar.gz: 75d4f8e85cf336c155401bc7787112ba89cbd06f
5
5
  SHA512:
6
- metadata.gz: 74fed1ef0fc4be6863d2ec5698f7e3da0455e6e3694f6e131435ebf7d8f8d4a7abca2d8bda881a8c0a263bd48a4cf71f8476c1716b8ea584a34395750d345075
7
- data.tar.gz: c1a1c35aa09482bc47fb74724f1f36316b45ddee495c8d62e3ff550625477a8f70ad9bf5e9da528cba6f2e6dfa5947dd4bef5b1abcb4547bbf9e3550006e5333
6
+ metadata.gz: 177abba4c388a4ee19990026220bd6530f6392566a85364194b489a51ae6a83b8f6cad123edaecf4b5db0b400b27cf08a5a683189ca59acc01d801e4a77afaf8
7
+ data.tar.gz: 4cf062e156eb3231eb87c019ecb5f771d12d9c55c0f045bab44a33a06822ebc6265f0bd596d3dcadaf1d3457c5ad410aab9e6049f5e0b34e73212b3de75e6964
@@ -6,12 +6,12 @@ module OpsBuild
6
6
  option :aws_access, type: :string, aliases: '-A', desc: 'AWS Access key'
7
7
  option :aws_secret, type: :string, aliases: '-S', desc: 'AWS Secret key'
8
8
  option :params, type: :string, aliases: '-p', desc: 'path to JSON as params'
9
- option :no_berks, type: :string, aliases: '-n', desc: 'Do not run berkshelf'
10
9
  end
11
10
 
12
11
  desc 'packer TEMPLATE', 'build packer template'
13
12
  shared_options
14
13
  option :berk_dir, type: :string, aliases: '-b', desc: 'Berkshelf cookbook directory path'
14
+ option :vendor, type: :boolean, aliases: '-n', desc: 'Vendor cookbooks', :default => true
15
15
  def packer(template)
16
16
  packer = Packer.new
17
17
  berkshelf = Berkshelf.new(dir: options[:berk_dir], silent: false)
@@ -37,10 +37,10 @@ module OpsBuild
37
37
 
38
38
  begin
39
39
  # Install missing cookbooks
40
- berkshelf.install unless options[:no_berks]
40
+ berkshelf.install unless options[:vendor]
41
41
 
42
42
  # Load cookbooks to correct dir.
43
- berkshelf.vendor unless options[:no_berks]
43
+ berkshelf.vendor unless options[:vendor]
44
44
 
45
45
  # Validate packer template
46
46
  packer.validate(template)
@@ -1,3 +1,3 @@
1
1
  module OpsBuild
2
- VERSION = '1.1.12'
2
+ VERSION = '1.1.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_build
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - HAMSIK Adam