snailgun 1.0.5 → 1.0.6
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/README.markdown +3 -1
- data/lib/snailgun/server.rb +4 -1
- metadata +1 -1
data/README.markdown
CHANGED
data/lib/snailgun/server.rb
CHANGED
|
@@ -11,6 +11,7 @@ trace_var(:$0) {|val| $PROGRAM_NAME = val} # update for ps
|
|
|
11
11
|
|
|
12
12
|
require 'socket'
|
|
13
13
|
require 'optparse'
|
|
14
|
+
require 'shellwords'
|
|
14
15
|
|
|
15
16
|
module Snailgun
|
|
16
17
|
class Server
|
|
@@ -93,7 +94,9 @@ module Snailgun
|
|
|
93
94
|
end
|
|
94
95
|
|
|
95
96
|
def self.shell
|
|
96
|
-
|
|
97
|
+
shell_opts = ENV['SNAILGUN_SHELL_OPTS']
|
|
98
|
+
args = shell_opts ? Shellwords.shellwords(shell_opts) : []
|
|
99
|
+
system(ENV['SHELL'] || 'bash', *args)
|
|
97
100
|
end
|
|
98
101
|
|
|
99
102
|
# Interactive mode (start a subshell with SNAILGUN_SOCK set up,
|