hashipack 0.1.5 → 0.1.7
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87fd41d558d6ee4d58c99aa4e2a33eeffc370a03aef72e39ff573d746378b5e2
|
4
|
+
data.tar.gz: b0fd96379a70bd93ee8fbf8cde578aa2aa3d9dac4d942edda84a40e18220d7ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d076feaf4992bf9bdd0f98c5a4e531e1c2c7b71ba658557c14fa0f831340fd18889466e8bbe2cc156a0cb63d4c729304f81987f4d24490cdb1719d4e340aac9b
|
7
|
+
data.tar.gz: b35accd2f1f4d7b4009c953c0995882a59e3ac82361d196863a7c0d456a0a7c108c7187c45ff3fa85437042924c88c872c8ecbe78054a67cc73a16482686f2b9
|
data/Gemfile.lock
CHANGED
data/lib/hashipack/client.rb
CHANGED
@@ -3,9 +3,10 @@ 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)
|
6
|
+
def build(path, on_output: lambda {}, on_progress: lambda {}, estimated_duration: 300, debug: false)
|
7
7
|
directory, filename = File.split(path)
|
8
|
-
|
8
|
+
debug_option = debug ? '-debug' : ''
|
9
|
+
command = "packer -machine-readable build #{debug_option} #{filename}"
|
9
10
|
|
10
11
|
initial_timestamp = 99999999999
|
11
12
|
last_timestamp = 0
|
@@ -39,7 +40,7 @@ module Hashipack
|
|
39
40
|
stderr.each do |line|
|
40
41
|
puts "Error: #{line}"
|
41
42
|
end
|
42
|
-
|
43
|
+
|
43
44
|
puts "Exit status: #{wait_thr.value}"
|
44
45
|
end
|
45
46
|
|
data/lib/hashipack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hashipack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas_Skywalker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08
|
11
|
+
date: 2024-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: None.
|
14
14
|
email:
|