uoregon-multissh 0.2.2 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/lib/cli.rb +0 -1
- data/lib/multissh.rb +0 -1
- data/{multissh.gemspec → uoregon-multissh.gemspec} +2 -2
- metadata +2 -3
- data/lib/update.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87cf23f85ae6a71ca4fd1475bbeb055b1d7d5cfbd95606e4e930cd14a4284af2
|
4
|
+
data.tar.gz: 120c114abd4cea643319c2902ce9202fc4ad5005f74261fd8a4c9b70c419fcb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6daa7c28af76793e58377d6e69a43287b3cee9e41e5bd5c6307386ec8d67db6cbe08f4406d28d646e8251eaa701e01236b60a196f5539429f871c1562258e24a
|
7
|
+
data.tar.gz: c8be995825c5cc9434862eaa598141c2e292bfd2a857442a0a782ead514ebda3d108c32b93047a6c064cf4f8a170c30ee3efc60a23359f457e6c81826977c67d
|
data/.gitignore
CHANGED
data/lib/cli.rb
CHANGED
data/lib/multissh.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'uoregon-multissh'
|
3
|
-
spec.version = '0.2.
|
3
|
+
spec.version = '0.2.5'
|
4
4
|
spec.date = '2019-05-14'
|
5
5
|
spec.summary = "Do all the things everywhere at the same time"
|
6
6
|
spec.description = "Quickly run multiple commands on many boxes at the same time"
|
7
7
|
spec.authors = ["Lucas Crownover"]
|
8
8
|
spec.email = 'lcrownover127@gmail.com'
|
9
9
|
spec.homepage = 'https://www.savethemanatee.org/manatees/facts/'
|
10
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
10
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|build)/}) }
|
11
11
|
spec.executables = ["multissh"]
|
12
12
|
spec.require_paths = ["lib"]
|
13
13
|
spec.license = 'MIT'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uoregon-multissh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Crownover
|
@@ -26,10 +26,9 @@ files:
|
|
26
26
|
- lib/cli.rb
|
27
27
|
- lib/credential.rb
|
28
28
|
- lib/multissh.rb
|
29
|
-
- lib/update.rb
|
30
29
|
- lib/util.rb
|
31
30
|
- lib/worker.rb
|
32
|
-
- multissh.gemspec
|
31
|
+
- uoregon-multissh.gemspec
|
33
32
|
homepage: https://www.savethemanatee.org/manatees/facts/
|
34
33
|
licenses:
|
35
34
|
- MIT
|
data/lib/update.rb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
class Update
|
2
|
-
attr_reader :local_revision, :remote_revision
|
3
|
-
|
4
|
-
def initialize(called_command)
|
5
|
-
begin
|
6
|
-
%x{git fetch -q}
|
7
|
-
@local_revision = %x{git rev-parse HEAD}
|
8
|
-
@remote_revision = (%x{git ls-remote --heads --tags origin}).split.first
|
9
|
-
rescue
|
10
|
-
@local_revision = nil
|
11
|
-
@remote_revision = nil
|
12
|
-
end
|
13
|
-
|
14
|
-
if update.local_revision != update.remote_revision
|
15
|
-
printf "MultiSSH update available. Would you like to update? (y/n): "
|
16
|
-
if ['y', 'Y'].include? gets.chomp
|
17
|
-
%x{git reset --hard origin/master && git pull}
|
18
|
-
at_exit do
|
19
|
-
%x{#{called_command}}
|
20
|
-
end#at_exit
|
21
|
-
exit 0
|
22
|
-
end#if
|
23
|
-
end#if
|
24
|
-
end#initialize
|
25
|
-
|
26
|
-
def show
|
27
|
-
puts "local: #{@local_revision}"
|
28
|
-
puts "remote: #{@remote_revision}"
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|