uoregon-multissh 0.2.2 → 0.2.5

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: b6c803a8837c4f704bfd43e4ee2b92e03afb75d419c9353d60bc8b596171ac03
4
- data.tar.gz: 56dab86e92624866237d5e4f1f986e83961ac8660509ea4ae91d0bab3a9431b9
3
+ metadata.gz: 87cf23f85ae6a71ca4fd1475bbeb055b1d7d5cfbd95606e4e930cd14a4284af2
4
+ data.tar.gz: 120c114abd4cea643319c2902ce9202fc4ad5005f74261fd8a4c9b70c419fcb1
5
5
  SHA512:
6
- metadata.gz: 386e2b55b1bf09ed100083b108fd38d276f29dcf9b51858848eddafa002bf7a56463eca9ce2c6c4c02997024d9e3601cbb5344429b2a2c291113c4845ff3bb72
7
- data.tar.gz: ce46bd0c1e12847e5440f1027f058b11c99be94c93e07760488091df6f4ec59c2318dd5dd277573643db0df44762f4e331cf7d1454c94e53e7aceefed524f612
6
+ metadata.gz: 6daa7c28af76793e58377d6e69a43287b3cee9e41e5bd5c6307386ec8d67db6cbe08f4406d28d646e8251eaa701e01236b60a196f5539429f871c1562258e24a
7
+ data.tar.gz: c8be995825c5cc9434862eaa598141c2e292bfd2a857442a0a782ead514ebda3d108c32b93047a6c064cf4f8a170c30ee3efc60a23359f457e6c81826977c67d
data/.gitignore CHANGED
@@ -2,4 +2,4 @@
2
2
  tests.txt
3
3
  command.txt
4
4
  nodes.txt
5
- multissh-*.gem
5
+ build
data/lib/cli.rb CHANGED
@@ -27,7 +27,6 @@ class Cli
27
27
 
28
28
  raise OptionParser::MissingArgument unless valid_options_set
29
29
  rescue
30
- puts "\n"
31
30
  abort(opt_parse.help)
32
31
  end
33
32
 
data/lib/multissh.rb CHANGED
@@ -5,7 +5,6 @@ require 'io/console'
5
5
  require 'colorize'
6
6
  require 'yaml'
7
7
 
8
- require_relative 'update'
9
8
  require_relative 'cli'
10
9
  require_relative 'worker'
11
10
  require_relative 'util'
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'uoregon-multissh'
3
- spec.version = '0.2.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.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