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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/opswalrus/app.rb +8 -3
- data/lib/opswalrus/bootstrap.ops +2 -1
- data/lib/opswalrus/host.rb +2 -2
- 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: c63f73e2a4fddd7a8faa6a534357ca83e77e4fd218f5e3ffbc341c39f6d6bd7c
|
4
|
+
data.tar.gz: 9f3c9ab5ddb6cc735dc114447ddab95963b2f3179de078b28f1b3c6ce0a40770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a08b0818cf1037f6e78cebf2a8ec037c10f33a715f64e60cd3f130825b087e80d187e33b33ee17e012f160473a825dfd9e8741fb9efb73267a1c205e36c3d68e
|
7
|
+
data.tar.gz: 324de6cf287e61401e874c4fce266838dc1f1074d42c3b058be6b2f69977c53eb1c49ac4a49b291efc411d71465611f6ca740c30f36bcb62e12d82d680e66b87
|
data/Gemfile.lock
CHANGED
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
|
-
|
418
|
-
|
419
|
-
|
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
|
data/lib/opswalrus/bootstrap.ops
CHANGED
data/lib/opswalrus/host.rb
CHANGED
@@ -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
|
191
|
-
cmd = "OPSWALRUS_LOCAL_HOSTNAME='#{local_hostname_for_remote_host}'; $HOME/.rubies/ruby-3.2.2/bin/gem --conservative
|
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
|
data/lib/opswalrus/version.rb
CHANGED