opswalrus 1.0.26 → 1.0.27

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: cbf52aaeace4ab759fb7928eacf69000112241ce9054982565524b4d110aeb2e
4
- data.tar.gz: '0089b4e7af6418588cc6c42e6f985b4d9f631d27cb54a23bfb22db5f84689773'
3
+ metadata.gz: c63f73e2a4fddd7a8faa6a534357ca83e77e4fd218f5e3ffbc341c39f6d6bd7c
4
+ data.tar.gz: 9f3c9ab5ddb6cc735dc114447ddab95963b2f3179de078b28f1b3c6ce0a40770
5
5
  SHA512:
6
- metadata.gz: 1c494ed2f70bc4c425ef7a197501d43e26ed718e8409d4478675289bf6d6d88f1a8b9e07d7ae5f5122381e2d2e17b9fdfa60bcd1743a6679cb96167f21d116b6
7
- data.tar.gz: aa98abe60dbf25b6cbf42dd819d08bf3809cda5a6b2b218d43e126b221a3fe2d595ae1088bb3027d9aedf1d001c2197ab0b2cd48da61b2d482f5742c37469f80
6
+ metadata.gz: a08b0818cf1037f6e78cebf2a8ec037c10f33a715f64e60cd3f130825b087e80d187e33b33ee17e012f160473a825dfd9e8741fb9efb73267a1c205e36c3d68e
7
+ data.tar.gz: 324de6cf287e61401e874c4fce266838dc1f1074d42c3b058be6b2f69977c53eb1c49ac4a49b291efc411d71465611f6ca740c30f36bcb62e12d82d680e66b87
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.26)
4
+ opswalrus (1.0.27)
5
5
  amazing_print (~> 1.5)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  citrus (~> 3.0)
data/lib/opswalrus/app.rb CHANGED
@@ -57,6 +57,7 @@ module OpsWalrus
57
57
  @local_hostname = "localhost"
58
58
  @mode = :report # :report | :script
59
59
  @dry_run = false
60
+ @zip_mutex = Thread::Mutex.new
60
61
  end
61
62
 
62
63
  def to_s
@@ -414,9 +415,13 @@ module OpsWalrus
414
415
  end
415
416
 
416
417
  def zip
417
- tmpzip = pwd.join("tmpops.zip")
418
- FileUtils.rm(tmpzip) if tmpzip.exist?
419
- @zip_bundle_path ||= DirZipper.zip(pwd, tmpzip)
418
+ @zip ||= begin
419
+ @zip_mutex.synchronize do
420
+ tmpzip = pwd.join("tmpops.zip")
421
+ FileUtils.rm(tmpzip) if tmpzip.exist?
422
+ DirZipper.zip(pwd, tmpzip)
423
+ end
424
+ end
420
425
  end
421
426
 
422
427
  end
@@ -1,4 +1,5 @@
1
- ssh_noprep in: :sequence do
1
+ # ssh_noprep in: :sequence do
2
+ ssh_noprep do
2
3
  puts "Bootstrapping #{to_s} (alias=#{self.alias})"
3
4
  _bootstrap_host()
4
5
  end
@@ -187,8 +187,8 @@ module OpsWalrus
187
187
  host
188
188
  end
189
189
 
190
- # cmd = "OPSWALRUS_LOCAL_HOSTNAME='#{local_hostname_for_remote_host}'; /home/linuxbrew/.linuxbrew/bin/gem --conservative exec -g opswalrus ops"
191
- cmd = "OPSWALRUS_LOCAL_HOSTNAME='#{local_hostname_for_remote_host}'; $HOME/.rubies/ruby-3.2.2/bin/gem --conservative exec -g opswalrus ops"
190
+ # cmd = "OPSWALRUS_LOCAL_HOSTNAME='#{local_hostname_for_remote_host}'; /home/linuxbrew/.linuxbrew/bin/gem exec --conservative -g opswalrus ops"
191
+ cmd = "OPSWALRUS_LOCAL_HOSTNAME='#{local_hostname_for_remote_host}'; $HOME/.rubies/ruby-3.2.2/bin/gem exec --conservative -g opswalrus ops"
192
192
  cmd << " -v" if verbose
193
193
  cmd << " #{ops_command.to_s}"
194
194
  cmd << " #{ops_command_options.to_s}" if ops_command_options
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.26"
2
+ VERSION = "1.0.27"
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.26
4
+ version: 1.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis