hashipack 0.1.6 → 0.1.8

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
  SHA256:
3
- metadata.gz: 2423fd4fb8a820ae618c61f0b031cacf63143f5626bc6ad9a7e7db3cd9c3f8e4
4
- data.tar.gz: e8e9a8c627d33522cf40efda1b03113cfacde5676386944c702d0647e8f9b7dd
3
+ metadata.gz: 543d181e4dcfe4edb7a51e31ffca9f40e7fee60e165201330518ac976c0e4552
4
+ data.tar.gz: 84063074a728b088f6f0ee4d0c63ccef150ba13d0ee8c6cb09cc25eebba67b6e
5
5
  SHA512:
6
- metadata.gz: 8c76888f12547f25db4f900a3cfbbafe904c8335897bece060d22cb32f9a30b3bec8546315d590b2329096d344db810cc462cd031f0bcd50d965d5b430b73956
7
- data.tar.gz: b8aed88a7362c77203826b202565f29f9b4034413fa7420fb2d60ab8855ca34a6f084ab3baf91290663d74f57e30eeea8ca18e4f92c0d5cb048bde12181a8939
6
+ metadata.gz: 8ab18b55931bd4cd214b9e5c172fdebf601791a35018b27694d20daf54e95e95496c9b0c1300c3ff8fcc6cb40593878095eb6d41b38e1eb471a0ce88d5870ba4
7
+ data.tar.gz: cbbee5f51e9ba98a441778578c693350ce4f011890b5a80628f2f650bc95dafd7249d53101d724cb54148d40277644403e5ce12143f8e795b55ff3f579b216bf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hashipack (0.1.6)
4
+ hashipack (0.1.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -3,10 +3,11 @@ require 'open3'
3
3
 
4
4
  module Hashipack
5
5
  class Client
6
- def build(path, on_output: lambda {}, on_progress: lambda {}, estimated_duration: 300, debug: false)
6
+ def build(path, on_output: lambda {}, on_progress: lambda {}, estimated_duration: 300, debug: false, machine_readable: true, additional_options: '')
7
7
  directory, filename = File.split(path)
8
- debug_suffix = debug ? ' -debug' : ''
9
- command = "packer -machine-readable build #{filename}#{debug_suffix}"
8
+ debug_option = debug ? '-debug' : ''
9
+ machine_readable_option = machine_readable ? '-machine-readable' : ''
10
+ command = "packer build #{machine_readable_option} #{debug_option} #{additional_options} #{filename}"
10
11
 
11
12
  initial_timestamp = 99999999999
12
13
  last_timestamp = 0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hashipack
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashipack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas_Skywalker