hieb 0.0.8 → 0.0.9
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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55038fc630fac4312ae38cb28d29c60995b2af5ae60140a5cd7a271791ac0cf6
|
4
|
+
data.tar.gz: a199f061eadd5c8dd036be067599d9c5c5362d154ad50e153312eb6712108752
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71a0828af286b095cbf0b710f637d3e1115a39fbe2b85034878f58b04025441a6447ce11b217bc85e616dd7b0cef9a2781f7fd329814cef2deb5fec16211428e
|
7
|
+
data.tar.gz: 246b2d3a846236f37aa0335ce5d67f3651a77e9861db25d6d5ce1f74484fecc36dd3a16e5c8a4bcb468c87ea58db9fc0a82556dcf54aab44e2004276073e49a6
|
data/lib/hieb.rb
CHANGED
@@ -40,9 +40,14 @@ def upload_dir(scp, dir)
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
def upload_files(host, user, key, upload_dir)
|
43
|
+
def upload_files(host, user, key, upload_dir, options = {})
|
44
|
+
if options[:paranoid] == true
|
45
|
+
paranoid = true
|
46
|
+
else
|
47
|
+
paranoid = false
|
48
|
+
end
|
44
49
|
# Upload deploy files
|
45
|
-
Net::SCP.start(host, user, :password => key, :keys => [ key ]) do |scp|
|
50
|
+
Net::SCP.start(host, user, :password => key, :keys => [ key ], :verify_host_key => paranoid) do |scp|
|
46
51
|
upload_dir scp, upload_dir
|
47
52
|
end if File.exist? upload_dir
|
48
53
|
end
|