runnel 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/runnel +10 -6
  2. metadata +4 -4
data/bin/runnel CHANGED
@@ -148,13 +148,17 @@ case ARGV[0]
148
148
  when "setup"
149
149
  Runnel.setup
150
150
  when "kill"
151
- Runnel.kill(ARGV[1])
152
- when "kill_all"
153
- Runnel.kill_all
151
+ if ARGV[1]
152
+ Runnel.kill(ARGV[1])
153
+ else
154
+ Runnel.kill_all
155
+ end
154
156
  when "start"
155
- Runnel.start(ARGV[1])
156
- when "start_all"
157
- Runnel.start_all
157
+ if ARGV[1]
158
+ Runnel.start(ARGV[1])
159
+ else
160
+ Runnel.start_all
161
+ end
158
162
  when "help"
159
163
  puts HELP
160
164
  else # List tunnels
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runnel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mark Percival
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  requirements: []
60
60
 
61
61
  rubyforge_project:
62
- rubygems_version: 1.5.2
62
+ rubygems_version: 1.6.2
63
63
  signing_key:
64
64
  specification_version: 3
65
65
  summary: An autossh tunnel manager, written in Ruby