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 CHANGED
@@ -1 +1 @@
1
- 1.1.0
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "hostmanager"
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Edmund Highcock"]
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> --- Copy file1 from host letter1 to host letter2
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hostmanager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: