opswalrus 1.0.103 → 1.0.105

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcc7b4d3e59f51ac90c2025c27345d0f9da65095c6d4406cbb522d3eca800f74
4
- data.tar.gz: 5ab46800dd863a1d58635eafdf83755497d60b505b4b35ac50a61c5022f8cf6b
3
+ metadata.gz: 10ff155d965d43e0e6e0bcc859415ca5779693159c4f975f42bdd0d7b5f639f8
4
+ data.tar.gz: 519050864da1c1655107b78410f3c5d0a78319527545be5bee706cd38630d90c
5
5
  SHA512:
6
- metadata.gz: 53ddd2218bc5a22a7144fdb04ee65c57acb79ab63c661815d2f170a2f64c37e40136f1efad9b115f3249b29b67d0f7242ebcd1f72a9f2275282b5fdee9543582
7
- data.tar.gz: 39dca248da2b08cf0f96b1ca53d5fa56139dbec7747e7f4f6415f77cbe92674c995844a7a659eee69d9ae5d435b077458c2d22ff5cf07591ae4eda9c46cff3a8
6
+ metadata.gz: a8155a1d101f4a679a708239797c631844952e5b6bf4ae2a48bc085f9cb48d3982714634be25cc1c05de27e74269cf5682d2d5a10d031448eb95e0c65fdffe6d
7
+ data.tar.gz: 57c7ad20bc860ed86b28be37c2a8deeaee8a8892f0cb86b75c73c286eb47654a203d155dcda52f027c01f04e49e366f7897fa79b287fe095dc35054d4f136a4e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.103)
4
+ opswalrus (1.0.105)
5
5
  activesupport (~> 7.0)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  binding_of_caller (~> 1.0)
@@ -122,7 +122,7 @@ module OpsWalrus
122
122
  end
123
123
 
124
124
  def _zip_copy_and_run_ops_bundle(local_host, block)
125
- @_host._initialize_session(local_host)
125
+ @_host._initialize_session
126
126
 
127
127
  # we run the block in the context of the host proxy object, s.t. `self` within the block evaluates to the host proxy object (i.e. self)
128
128
  retval = instance_exec(local_host, &block) # local_host is passed as the argument to the block
@@ -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 = @_host.upload(zip_bundle_path, "tmpops.zip")
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 = @_host.run_ops(:bundle, "unzip tmpops.zip", in_bundle_root_dir: false)
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
- @_host.execute(:rm, "-rf", "tmpops.zip", @tmp_bundle_root_dir)
583
+ execute(:rm, "-rf", "tmpops.zip", @tmp_bundle_root_dir)
584
584
  else
585
- @_host.execute(:rm, "-rf", "tmpops.zip")
585
+ execute(:rm, "-rf", "tmpops.zip")
586
586
  end
587
587
  end
588
588
 
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.103"
2
+ VERSION = "1.0.105"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opswalrus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.103
4
+ version: 1.0.105
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis