opswalrus 1.0.104 → 1.0.105
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/opswalrus/host.rb +4 -4
- data/lib/opswalrus/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: 10ff155d965d43e0e6e0bcc859415ca5779693159c4f975f42bdd0d7b5f639f8
|
4
|
+
data.tar.gz: 519050864da1c1655107b78410f3c5d0a78319527545be5bee706cd38630d90c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8155a1d101f4a679a708239797c631844952e5b6bf4ae2a48bc085f9cb48d3982714634be25cc1c05de27e74269cf5682d2d5a10d031448eb95e0c65fdffe6d
|
7
|
+
data.tar.gz: 57c7ad20bc860ed86b28be37c2a8deeaee8a8892f0cb86b75c73c286eb47654a203d155dcda52f027c01f04e49e366f7897fa79b287fe095dc35054d4f136a4e
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/host.rb
CHANGED
@@ -568,10 +568,10 @@ module OpsWalrus
|
|
568
568
|
def _initialize_session
|
569
569
|
# copy over ops bundle zip file
|
570
570
|
zip_bundle_path = @runtime_env.zip_bundle_path
|
571
|
-
upload_success =
|
571
|
+
upload_success = upload(zip_bundle_path, "tmpops.zip")
|
572
572
|
raise Error, "Unable to upload ops bundle to remote host" unless upload_success
|
573
573
|
|
574
|
-
stdout, _stderr, exit_status =
|
574
|
+
stdout, _stderr, exit_status = run_ops(:bundle, "unzip tmpops.zip", in_bundle_root_dir: false)
|
575
575
|
raise Error, "Unable to unzip ops bundle on remote host: #{stdout}" unless exit_status == 0
|
576
576
|
tmp_bundle_root_dir = stdout.strip
|
577
577
|
set_ssh_session_tmp_bundle_root_dir(tmp_bundle_root_dir)
|
@@ -580,9 +580,9 @@ module OpsWalrus
|
|
580
580
|
def _cleanup_session
|
581
581
|
# todo: cleanup
|
582
582
|
if @tmp_bundle_root_dir =~ /tmp/ # sanity check the temp path before we blow away something we don't intend
|
583
|
-
|
583
|
+
execute(:rm, "-rf", "tmpops.zip", @tmp_bundle_root_dir)
|
584
584
|
else
|
585
|
-
|
585
|
+
execute(:rm, "-rf", "tmpops.zip")
|
586
586
|
end
|
587
587
|
end
|
588
588
|
|
data/lib/opswalrus/version.rb
CHANGED