hostmanager 1.0.3 → 1.0.4
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.
- data/VERSION +1 -1
- data/hostmanager.gemspec +1 -1
- data/lib/hostmanager.rb +24 -20
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/hostmanager.gemspec
CHANGED
data/lib/hostmanager.rb
CHANGED
@@ -1,23 +1,3 @@
|
|
1
|
-
#= Hostmanager
|
2
|
-
#
|
3
|
-
#== Summary
|
4
|
-
#
|
5
|
-
#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'.
|
6
|
-
#
|
7
|
-
#== Examples
|
8
|
-
#
|
9
|
-
# hm add m myname@myhost
|
10
|
-
# hm x m
|
11
|
-
# hm list
|
12
|
-
# hm scp m:my_file h:.
|
13
|
-
#
|
14
|
-
#== Command Manual
|
15
|
-
#
|
16
|
-
#=== Commands
|
17
|
-
#
|
18
|
-
# hm add <letter> myname@myhost.com --- Add a host to be referred to with <letter>
|
19
|
-
# hm list -- List all hosts
|
20
|
-
# hm x <letter>
|
21
1
|
|
22
2
|
|
23
3
|
|
@@ -146,6 +126,30 @@ class Host
|
|
146
126
|
|
147
127
|
end
|
148
128
|
|
129
|
+
#= Hostmanager
|
130
|
+
#
|
131
|
+
#== Summary
|
132
|
+
#
|
133
|
+
#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'.
|
134
|
+
#
|
135
|
+
#== Examples
|
136
|
+
#
|
137
|
+
# hm add m myname@myhost
|
138
|
+
# hm x m
|
139
|
+
# hm list
|
140
|
+
# hm scp m:my_file h:.
|
141
|
+
#
|
142
|
+
#== Command Manual
|
143
|
+
#
|
144
|
+
#=== Commands
|
145
|
+
#
|
146
|
+
# hm add <letter> myname@myhost.com --- Add a host to be referred to with <letter>
|
147
|
+
# hm list -- List all hosts
|
148
|
+
# hm l <letter> -- Login to a host with ssh
|
149
|
+
# hm x <letter> -- Login to a host with ssh -X
|
150
|
+
# hm scp <letter1>:<file1> <letter2>:<file2> --- Copy file1 from host letter1 to host letter2
|
151
|
+
#
|
152
|
+
|
149
153
|
class HostManager
|
150
154
|
attr_accessor :host_list, :hosts, :forwards, :content_list, :option_string
|
151
155
|
def initialize(hash={})
|