hieb 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hieb.rb +7 -2
- 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: e8c716184121b20736ca71993bef6d90672d9d4a3d41efeaf4c78d6015105c55
|
4
|
+
data.tar.gz: 4b0cb2cf68ba857d9bc34a995595cc582d7ab4066705da8846b2f6af10b38676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b61088da5d63bd8146a7e1fcd5f85913656a15a500c1b8331425f2262058389f4d8d2c988163f616ffa351f68dad38dfddd1b1686e67b67a54237cd3c42c17fb
|
7
|
+
data.tar.gz: 074e24fa2230fd0f36a8c9f69a681764c0abc9263119fd734c254396ac1b2ea4468fe3235f422ed70a0e7aaa30c93a9eceec1eece3b2b40a5cfb0807ce421ff1
|
data/lib/hieb.rb
CHANGED
@@ -47,9 +47,14 @@ def upload_files(host, user, key, upload_dir)
|
|
47
47
|
end if File.exist? upload_dir
|
48
48
|
end
|
49
49
|
|
50
|
-
def execute_commands(host, user, key, exe_file)
|
50
|
+
def execute_commands(host, user, key, exe_file, options = {})
|
51
|
+
if options[:paranoid] == true
|
52
|
+
paranoid = true
|
53
|
+
else
|
54
|
+
paranoid = false
|
55
|
+
end
|
51
56
|
# Execute commands
|
52
|
-
Net::SSH.start(host, user, :password => key, :keys => [ key ]) do |ssh|
|
57
|
+
Net::SSH.start(host, user, :password => key, :keys => [ key ], :paranoid => paranoid) do |ssh|
|
53
58
|
serialized = File.read(exe_file)
|
54
59
|
data = JSON.parse(serialized)
|
55
60
|
data['commands'].each do |cmd|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hieb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Bovensiepen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|