sesh 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sesh/cli.rb +1 -1
- data/lib/sesh/ssh_control.rb +2 -2
- data/lib/sesh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc06146a5e15fe6189868ccaa713a1b3ac3cc1d
|
4
|
+
data.tar.gz: 1289b53289bdaa7e0d2f62411f4216f83399e92d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aaa76f37ea82defb160e0bad181f257920cc8fb8dec2036df2f457e8b314fedf4b18c0e0e067dd44e61b1253c2660f7573cb1fa9b6cbea6cb4ba879109951ab
|
7
|
+
data.tar.gz: 5aed87ec071af36d523f74a96131e8fecfca731e203195073132f042c5722dd0f53324836e972998513251e82d6dab581f1729351f4ed220ce71fa267d1ea860
|
data/Gemfile.lock
CHANGED
data/lib/sesh/cli.rb
CHANGED
@@ -95,7 +95,7 @@ module Sesh
|
|
95
95
|
Logger.fatal "Sesh project '#{@options[:project]}' is not running!"
|
96
96
|
end
|
97
97
|
end
|
98
|
-
system @ssh_control.enter_slave_mode_command
|
98
|
+
system @ssh_control.enter_slave_mode_command
|
99
99
|
when 'enslave'
|
100
100
|
Logger.fatal("Sesh project '#{@options[:project]}' is not running!") unless @tmux_control.already_running?
|
101
101
|
Logger.fatal("You must specify a machine to enslave! Eg: user@ip") if @options[:ssh][:remote_addr].nil?
|
data/lib/sesh/ssh_control.rb
CHANGED
@@ -9,7 +9,7 @@ module Sesh
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def connection_command(addr=nil)
|
12
|
-
addr ||= @options[:
|
12
|
+
addr ||= @options[:remote_addr]
|
13
13
|
tmux_cmd = @tmux_control.connection_command
|
14
14
|
return tmux_cmd if addr == @options[:local_addr]
|
15
15
|
"ssh #{addr} -t '#{tmux_cmd}'"
|
@@ -37,7 +37,7 @@ module Sesh
|
|
37
37
|
|
38
38
|
def enslave_peer!
|
39
39
|
puts Sesh.format_and_run_command <<-BASH
|
40
|
-
ssh #{@options[:remote_addr]} -t "sesh connect #{@project} #{@options[:local_addr]}"
|
40
|
+
ssh #{@options[:remote_addr]} -t "sesh connect -p #{@project} -R #{@options[:local_addr]}"
|
41
41
|
BASH
|
42
42
|
$?
|
43
43
|
end
|
data/lib/sesh/version.rb
CHANGED