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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/hostmanager.gemspec +1 -1
  3. data/lib/hostmanager.rb +24 -20
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
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.0.3"
8
+ s.version = "1.0.4"
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
@@ -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={})
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.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: