sesh 0.1.3 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f719b7b8f5d813744e6e4fa06692a451e02dc968
4
- data.tar.gz: 87c8766d0893aab61e21be1acd4b82440a6da87e
3
+ metadata.gz: 2cc06146a5e15fe6189868ccaa713a1b3ac3cc1d
4
+ data.tar.gz: 1289b53289bdaa7e0d2f62411f4216f83399e92d
5
5
  SHA512:
6
- metadata.gz: 4e2d33b8054dfbc82e0bebd941e03d7f8b20f15fdc02eb1fa7c1f27f8a75c3b73119abc687fea1be3cf14ba44b6d798899f494883f9b4eff9251d94e61d2c1c2
7
- data.tar.gz: c5448de9d6425c53f68f435271c7c79e3939ba41baed1d66dd84c3916b5cdcb78a21e85dcaed812b0c78158b953d0b0f588bbd8206c940b79e3383513444525a
6
+ metadata.gz: 5aaa76f37ea82defb160e0bad181f257920cc8fb8dec2036df2f457e8b314fedf4b18c0e0e067dd44e61b1253c2660f7573cb1fa9b6cbea6cb4ba879109951ab
7
+ data.tar.gz: 5aed87ec071af36d523f74a96131e8fecfca731e203195073132f042c5722dd0f53324836e972998513251e82d6dab581f1729351f4ed220ce71fa267d1ea860
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sesh (0.1.3)
4
+ sesh (0.1.4)
5
5
  awesome_print
6
6
  colorize
7
7
  deep_merge
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(@options[:ssh][:local_addr])
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?
@@ -9,7 +9,7 @@ module Sesh
9
9
  end
10
10
 
11
11
  def connection_command(addr=nil)
12
- addr ||= @options[:local_addr]
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
@@ -1,3 +1,3 @@
1
1
  module Sesh
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sesh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith