Top Level Namespace

Defined Under Namespace

Modules: LSL Classes: Array, Object, RakeRunner, RemoteCall, String

Instance Method Summary collapse

Instance Method Details

#ec_array(cmd) ⇒ Object



9
10
11
# File 'lib/lsl/shell.rb', line 9

def ec_array(cmd)
  `#{cmd}`.output_to_array
end

#load_config!Object



31
32
33
34
35
36
# File 'lib/lsl.rb', line 31

def load_config!
  f = ENV['HOME'] + "/.lsl"
  if FileTest.exist?(f)
    eval(File.read(f))
  end
end

#run_shell!(obj = nil) ⇒ Object



139
140
141
142
143
# File 'lib/lsl/shell.rb', line 139

def run_shell!(obj=nil)
  s = LSL::Shell.instance
  s.env = obj if obj
  s.run_loop
end

#with_debugObject



63
64
65
66
67
68
# File 'lib/lsl.rb', line 63

def with_debug
  $debug = true
  yield
ensure
  $debug = false
end