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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hashipack/client.rb +4 -3
- data/lib/hashipack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 543d181e4dcfe4edb7a51e31ffca9f40e7fee60e165201330518ac976c0e4552
|
4
|
+
data.tar.gz: 84063074a728b088f6f0ee4d0c63ccef150ba13d0ee8c6cb09cc25eebba67b6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab18b55931bd4cd214b9e5c172fdebf601791a35018b27694d20daf54e95e95496c9b0c1300c3ff8fcc6cb40593878095eb6d41b38e1eb471a0ce88d5870ba4
|
7
|
+
data.tar.gz: cbbee5f51e9ba98a441778578c693350ce4f011890b5a80628f2f650bc95dafd7249d53101d724cb54148d40277644403e5ce12143f8e795b55ff3f579b216bf
|
data/Gemfile.lock
CHANGED
data/lib/hashipack/client.rb
CHANGED
@@ -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
|
-
|
9
|
-
|
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
|
data/lib/hashipack/version.rb
CHANGED