hostmanager 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+ gem "rubyhacks", ">= 0.1.0"
6
+
7
+
8
+ # Add dependencies to develop your gem here.
9
+ # Include everything needed to run rake, tests, features, etc.
10
+ group :development do
11
+ gem "shoulda", ">= 0"
12
+ gem "rdoc", "~> 3.12"
13
+ gem "bundler", "> 1.0.0"
14
+ gem "jeweler", ">= 1.8.4"
15
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Edmund Highcock
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ hostmanager
2
+ ===========
3
+
4
+ A class and command line utility that allows simple management of ssh hosts and remote folders. E.g. logging in to a remote server becomes as easy as 'hm l y'.
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = hostmanager
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to hostmanager
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2012 Edmund Highcock. See LICENSE.txt for
18
+ further details.
19
+
data/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "hostmanager"
18
+ gem.homepage = "http://github.com/edmundhighcock/hostmanager"
19
+ gem.license = "GPLv3"
20
+ gem.summary = %Q{Simple class/command line utility for management of remote hosts.}
21
+ gem.description = %Q{A class and command line utility that allows simple management of ssh hosts and remote folders. E.g. logging in to a remote server becomes as easy as 'hm l y'.}
22
+ gem.email = "github@edmundhighcock.com"
23
+ gem.authors = ["Edmund Highcock"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ #require 'rcov/rcovtask'
36
+ #Rcov::RcovTask.new do |test|
37
+ ##test.libs << 'test'
38
+ ##test.pattern = 'test/**/test_*.rb'
39
+ ##test.verbose = true
40
+ ##test.rcov_opts << '--exclude "gems/*"'
41
+ ##end
42
+
43
+ task :default => :test
44
+
45
+ require 'rdoc/task'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "hostmanager #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
data/bin/hm ADDED
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/env ruby
2
+
3
+
4
+ begin
5
+ require 'hostmanager'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'hostmanager'
9
+ end
10
+ #!/usr/local/bin/ruby
11
+ require "getoptlong"
12
+ require "pp"
13
+ require 'fileutils'
14
+ require 'rubyhacks'
15
+
16
+ $script_folder = File.dirname(File.expand_path(__FILE__)) #i.e. where this script is
17
+
18
+
19
+
20
+ opts = GetoptLong.new(
21
+ ["--delete", "-d", GetoptLong::NO_ARGUMENT],
22
+ ["--soft", "-s", GetoptLong::NO_ARGUMENT],
23
+ ["--test", "-T", GetoptLong::NO_ARGUMENT],
24
+ ["--options", "-o", GetoptLong::REQUIRED_ARGUMENT],
25
+ ["--zeroconf", "-z",GetoptLong::NO_ARGUMENT]
26
+ )
27
+ $delete = false
28
+ $x_forwarding = true
29
+ opts.each do |opt, arg|
30
+
31
+ case opt
32
+ when "--delete"
33
+ $delete=true
34
+ when "--soft"
35
+ $soft=true
36
+ when "--test"
37
+ $test = true
38
+ when "--options"
39
+ $options = '-' + arg
40
+ # p $options
41
+ when "--zeroconf"
42
+ $zeroconf = true
43
+ end
44
+ end
45
+
46
+ # task = ARGV[0]
47
+ $command = nil
48
+
49
+
50
+ HostManager.phoenix($default_host_manager_store) do |host_manager|
51
+ host_manager.option_string = $options
52
+ case ARGV[0]
53
+ when 'x'
54
+ host_manager.option_string ? host_manager.option_string << 'X' : host_manager.option_string = '-X'
55
+ host = ARGV[-1]
56
+ raise 'Only one host required for login' unless host.length == 1
57
+ $command = host_manager.login(host)
58
+ when 'l', 'login'
59
+ host = ARGV[-1]
60
+ raise 'Only one host required for login' unless host.length == 1
61
+ $command = host_manager.login(host)
62
+ when 'list'
63
+ puts "\n####### Host Manager: Available Hosts #######\n\n"
64
+ host_manager.host_list.each do |letter, string|
65
+ puts "#{letter} --> #{string}"
66
+ end
67
+ puts "\n#############################################\n\n"
68
+ when 'add'
69
+ raise 'A host label can only be one letter or symbol' unless ARGV[1].length == 1
70
+ (puts 'This host already exists. Do you want to replace it? Press enter to replace it or Ctrl + C to cancel.'; $stdin.gets) if host_manager.host_list[ARGV[1]]
71
+ host_manager.host_list[ARGV[1]] = ARGV[2] + ($zeroconf ? "(zeroconf)" : "")
72
+ when 'pf', 'portforward'
73
+ $command = host_manager.port_forward(*ARGV[-1].split(//))
74
+ when 'ssh'
75
+ puts host_manager.hosts[ARGV[-1]].ssh
76
+ when 'scp'
77
+ $command = host_manager.scp(*(ARGV[-2].split(":") + ARGV[-1].split(":")))
78
+ when 'rsync'
79
+ $command = host_manager.rsync(*(ARGV[-2].split(":") + ARGV[-1].split(":")))
80
+ when 'str'
81
+ puts host_manager.host_list[ARGV[-1]]
82
+ when 'sshfs'
83
+ $command = host_manager.sshfs(*ARGV[-2].split(":"), ARGV[-1])
84
+ when 'co'
85
+ case ARGV[-2]
86
+ when "sourceforge", "sf"
87
+ $command = "svn co https://#{ARGV[-1]}.svn.sourceforge.net/svnroot/#{ARGV[-1]}"
88
+ end
89
+ when 'addsync'
90
+ Hash.phoenix(ENV['HOME'] + '/.host_manager_sync_data.rb') do |syncs|
91
+ syncs[ARGV[-3]] ||= {}
92
+ (puts 'This sync folder already exists. Do you want to replace it? Press enter to replace it or Ctrl + C to cancel.'; $stdin.gets) if syncs[ARGV[-3]][ARGV[-2]]
93
+ syncs[ARGV[-3]][ARGV[-2]] = ARGV[-1]
94
+ syncs
95
+ end
96
+ when 'sync'
97
+ Hash.phoenix(ENV['HOME'] + '/.host_manager_sync_data.rb') do |syncs|
98
+ raise "Unknown content: content #{ARGV[-2]}" unless syncs[ARGV[-2]]
99
+ f, s = ARGV[-1].split(//)
100
+ $command = host_manager.rsync(f, syncs[ARGV[-2]][f], s, syncs[ARGV[-2]][s])
101
+ syncs
102
+ end
103
+ when 'listsyncs'
104
+ Hash.phoenix(ENV['HOME'] + '/.host_manager_sync_data.rb') do |syncs|
105
+ pp syncs
106
+ end
107
+ end
108
+ end
109
+
110
+ if $command
111
+ puts $command
112
+ exec $command unless $test
113
+ end
114
+
@@ -0,0 +1,213 @@
1
+ #!/usr/local/bin/ruby
2
+ require "getoptlong"
3
+ require "pp"
4
+ require 'fileutils'
5
+ require 'rubyhacks'
6
+ # require '/home/edmundhighcock/Code/coderunner/trunk/box_of_tricks.rb'
7
+ $default_host_manager_store = ENV['HOME'] + '/.host_manager_data.rb'
8
+
9
+ # $script_folder = File.dirname(File.expand_path(__FILE__)) #i.e. where this script is
10
+
11
+
12
+ class Host
13
+ class_accessor :ssh_option_string
14
+ @@ssh_option_string = ""
15
+ attr_accessor :user_name, :host, :port
16
+ def self.from_string(string)
17
+ return Zeroconf.from_string(string) if string =~ /\(zeroconf\)/
18
+ user_name, host = string.split('@')
19
+ return host =~ /\S/ ? new(user_name, host) : Local.new
20
+ end
21
+ def initialize(user_name, host)
22
+ @host = host; @user_name = user_name.gsub(/ /, '\ '); @port = nil
23
+ end
24
+ def setup #see Zeroconf
25
+ end
26
+ def rsync_scp_remote
27
+ setup
28
+ @user_name ? "#@user_name@#@host:" : "#@host:"
29
+ end
30
+ def rsync_scp_local
31
+ setup
32
+ ""
33
+ end
34
+ def ssh
35
+ setup
36
+ @user_name ? "ssh #@@ssh_option_string #@user_name@#@host" : "ssh #@@ssh_option_string #@host"
37
+ end
38
+ def sshfs
39
+ setup
40
+ @user_name ? "sshfs #@@ssh_option_string #@user_name@#@host:" : "sshfs #@@ssh_option_string #@host:"
41
+ end
42
+ def remote?
43
+ setup
44
+ true
45
+ end
46
+ def control_path_string
47
+ end
48
+
49
+
50
+ class Local < Host
51
+ class SSHError < StandardError
52
+ end
53
+ def initialize
54
+ @host = @name = nil
55
+ end
56
+ def rsync_scp_remote
57
+ ""
58
+ end
59
+ def rsync_scp_local
60
+ ""
61
+ end
62
+ def ssh
63
+ ""
64
+ end
65
+ def remote?
66
+ false
67
+ end
68
+ end
69
+
70
+
71
+ class Forwarded < Host
72
+ def self.from_string(string, port)
73
+ user_name, host = string.split('@')
74
+ new(user_name, port)
75
+ end
76
+ def initialize(user_name, port)
77
+ @port = port
78
+ @user_name = user_name.gsub(/ /, '\ ')
79
+ @host = "localhost"
80
+ end
81
+ def rsync_scp_remote
82
+ "--rsh='ssh -p #{@port}' #{@user_name}@localhost:"
83
+ end
84
+ def rsync_scp_local
85
+ ""
86
+ end
87
+ def ssh
88
+ "ssh -p #{@port} #@@ssh_option_string #{@user_name}@localhost"
89
+ end
90
+ def sshfs
91
+ "sshfs -p #{@port} #@@ssh_option_string #{@user_name}@localhost:"
92
+ end
93
+ def remote?
94
+ true
95
+ end
96
+ end
97
+
98
+ class Zeroconf < Host
99
+ def self.from_string(string)
100
+ return new(string)
101
+ end
102
+ def initialize(string)
103
+ @string = string
104
+ end
105
+ def setup
106
+ return if @user_name and @host
107
+ @user_name, host = @string.split('@')
108
+ @user_name.gsub!(/ /, '\ ')
109
+ host = host.sub(/\(zeroconf\)/, '')
110
+ raise 'avahi-utils required for zeroconf hosts' unless system 'avahi-resolve --version > /dev/null'
111
+ # # puts system "avahi-resolve -n #{host} > /dev/null"
112
+ unless `avahi-resolve -n #{host}` =~ /\d\./
113
+ puts "Must restart avahi-daemon - please enter an adminstrator password"
114
+ # puts system 'sudo /usr/sbin/avahi-daemon -c'
115
+ if system 'sudo /usr/sbin/avahi-daemon -c'
116
+ puts `sudo /usr/sbin/avahi-daemon -r`
117
+ else
118
+ puts `sudo /usr/sbin/avahi-daemon -D`
119
+ end
120
+ end
121
+ @host = `avahi-resolve -n #{host}`.split(/\s+/)[1]
122
+ end
123
+ end
124
+
125
+ end
126
+
127
+ class HostManager
128
+ attr_accessor :host_list, :hosts, :forwards, :content_list, :option_string
129
+ def initialize(hash={})
130
+ hash.each do |key, value|
131
+ self.class.send(:attr_accessor, key)
132
+ set(key, value)
133
+ end
134
+ @host_list ||= {}
135
+ @host_list.each do |letter, string|
136
+ string.sub!(/:$/, '')
137
+ end
138
+ @forwards ||= {}
139
+ @content_list ||= {}
140
+ @hosts = {}
141
+ @start_port ||= 29800
142
+ @host_list.each do |letter, host_string|
143
+ if @forwards[letter]
144
+ @hosts[letter] = Host::Forwarded.from_string(host_string, @forwards[letter])
145
+ unless (string = "#{@hosts[letter].ssh} cd . 2>null"; system string)
146
+ # puts 'port failed'
147
+ @forwards.delete(letter)
148
+ @hosts[letter] = Host.from_string(host_string)
149
+ else
150
+ # puts 'port passed'
151
+ end
152
+ # exit
153
+ elsif host_string == nil
154
+ host_string = @host_list[letter] = ""
155
+ redo
156
+ else
157
+ @hosts[letter] = Host.from_string(host_string)
158
+ end
159
+ end
160
+ end
161
+ def inspect
162
+ @hosts = "Don't edit this variable"
163
+ hash = instance_variables.inject({}) do |hash, var|
164
+ name = var.to_s.sub(/@/, '').to_sym
165
+ hash[name] = instance_variable_get(var)
166
+ hash
167
+ end
168
+ return "HostManager.new(\n#{hash.pretty_inspect.gsub(/\n/, "\n\t")}\n)"
169
+ end
170
+ def login(letter)
171
+ Host.ssh_option_string = @option_string
172
+ return @hosts[letter].ssh
173
+ end
174
+ def both_remote?(*letters)
175
+ return letters.inject(true){|bool, letter| bool and @hosts[letter].remote?}
176
+ end
177
+ def scp(from_letter, from_folder, to_letter, to_folder)
178
+ if both_remote?(from_letter, to_letter)
179
+ return "#{@hosts[to_letter].ssh} scp #@option_string #{@hosts[from_letter].rsync_scp_remote}#{from_folder} #{@hosts[to_letter].rsync_scp_local}#{to_folder}"
180
+ else
181
+ return "scp #@option_string #{@hosts[from_letter].rsync_scp_remote}#{from_folder} #{@hosts[to_letter].rsync_scp_remote}#{to_folder}"
182
+ end
183
+ end
184
+ def rsync(from_letter, from_folder, to_letter, to_folder)
185
+ if both_remote?(from_letter, to_letter)
186
+ return "#{@hosts[to_letter].ssh} rsync #@option_string #{@hosts[from_letter].rsync_scp_remote}#{from_folder} #{@hosts[to_letter].rsync_scp_local}#{to_folder}"
187
+ else
188
+ return "rsync #@option_string #{@hosts[from_letter].rsync_scp_remote}#{from_folder} #{@hosts[to_letter].rsync_scp_remote}#{to_folder}"
189
+ end
190
+ end
191
+ def port_forward(via_letter, destination_letter)
192
+ raise "Port forwarding already active for #{destination_letter}" if @forwards[destination_letter]
193
+ @forwards[destination_letter] = @start_port + destination_letter.ord
194
+ %[#{@hosts[via_letter].ssh} -L #{@forwards[destination_letter]}:#{@hosts[destination_letter].host}:22]
195
+ end
196
+ def host(letter)
197
+ return @hosts[letter].host
198
+ end
199
+ def user_name(letter)
200
+ return @hosts[letter].user_name
201
+ end
202
+ def sshfs(letter, remote_folder = nil, local_folder)
203
+ return @hosts[letter].sshfs + "#{remote_folder} #{local_folder}"
204
+ end
205
+ def ssh(letter)
206
+ return @hosts[letter].ssh
207
+ end
208
+ def rsync_scp(letter)
209
+ return @hosts[letter].rsync_scp_remote
210
+ end
211
+ end
212
+
213
+
data/test/helper.rb ADDED
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'hostmanager'
16
+
17
+ class Test::Unit::TestCase
18
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestHostmanager < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hostmanager
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Edmund Highcock
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rubyhacks
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.1.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: shoulda
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rdoc
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '3.12'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
62
+ - !ruby/object:Gem::Dependency
63
+ name: bundler
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>'
68
+ - !ruby/object:Gem::Version
69
+ version: 1.0.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>'
76
+ - !ruby/object:Gem::Version
77
+ version: 1.0.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: jeweler
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: 1.8.4
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 1.8.4
94
+ description: A class and command line utility that allows simple management of ssh
95
+ hosts and remote folders. E.g. logging in to a remote server becomes as easy as
96
+ 'hm l y'.
97
+ email: github@edmundhighcock.com
98
+ executables:
99
+ - hm
100
+ extensions: []
101
+ extra_rdoc_files:
102
+ - LICENSE.txt
103
+ - README.md
104
+ - README.rdoc
105
+ files:
106
+ - .document
107
+ - Gemfile
108
+ - LICENSE.txt
109
+ - README.md
110
+ - README.rdoc
111
+ - Rakefile
112
+ - VERSION
113
+ - bin/hm
114
+ - lib/hostmanager.rb
115
+ - test/helper.rb
116
+ - test/test_hostmanager.rb
117
+ homepage: http://github.com/edmundhighcock/hostmanager
118
+ licenses:
119
+ - GPLv3
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ segments:
131
+ - 0
132
+ hash: 1924187907608627768
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 1.8.24
142
+ signing_key:
143
+ specification_version: 3
144
+ summary: Simple class/command line utility for management of remote hosts.
145
+ test_files: []