hostmanager 1.1.0 → 1.2.0
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/bin/hm +3 -0
- data/hostmanager.gemspec +1 -1
- data/lib/hostmanager.rb +10 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/bin/hm
CHANGED
@@ -104,6 +104,9 @@ HostManager.phoenix($default_host_manager_store) do |host_manager|
|
|
104
104
|
Hash.phoenix(ENV['HOME'] + '/.host_manager_sync_data.rb') do |syncs|
|
105
105
|
pp syncs
|
106
106
|
end
|
107
|
+
when 'help'
|
108
|
+
puts "For help, please use the internal docmentation by typing
|
109
|
+
$ ri HostManager"
|
107
110
|
end
|
108
111
|
end
|
109
112
|
|
data/hostmanager.gemspec
CHANGED
data/lib/hostmanager.rb
CHANGED
@@ -138,6 +138,7 @@ end
|
|
138
138
|
# hm x m
|
139
139
|
# hm list
|
140
140
|
# hm scp m:my_file h:.
|
141
|
+
# hm rsync -o av m:source/path h:dest/path
|
141
142
|
#
|
142
143
|
#== Command Manual
|
143
144
|
#
|
@@ -147,8 +148,16 @@ end
|
|
147
148
|
# hm list -- List all hosts
|
148
149
|
# hm l <letter> -- Login to a host with ssh
|
149
150
|
# hm x <letter> -- Login to a host with ssh -X
|
150
|
-
# hm scp <letter1>:<file1> <letter2>:<file2>
|
151
|
+
# hm scp <letter1>:<file1> <letter2>:<file2> -- Copy file1 from host letter1 to host letter2
|
152
|
+
# hm rsync <letter1>:<path1> <letter2>:<path2> -- Sync path1 on host letter1 to path2 on host letter2 using rsync
|
153
|
+
# hm sshfs <letter>:<path> <localpath> -- Mount path on host letter to localpath using sshfs
|
151
154
|
#
|
155
|
+
#=== Options
|
156
|
+
#
|
157
|
+
# -z --- host is a zero conf host
|
158
|
+
# -o <optionstring> -- Add optionstring to command
|
159
|
+
# -T -- 'test': print out the resulting command without running it
|
160
|
+
|
152
161
|
|
153
162
|
class HostManager
|
154
163
|
attr_accessor :host_list, :hosts, :forwards, :content_list, :option_string
|