class Cumuli::CLI::Terminal
Constants
- VARS
Attributes
command[R]
Public Class Methods
new(command)
click to toggle source
# File lib/cumuli/cli/terminal.rb, line 8 def initialize(command) @command = command end
Public Instance Methods
bundled?()
click to toggle source
# File lib/cumuli/cli/terminal.rb, line 12 def bundled? Object.const_defined?('Bundler') end
call_bundled()
click to toggle source
# File lib/cumuli/cli/terminal.rb, line 20 def call_bundled Bundler.with_clean_env do clear_env execute_command end end
clear_env()
click to toggle source
# File lib/cumuli/cli/terminal.rb, line 31 def clear_env VARS.each { |e| ENV.delete(e) } end
execute_command()
click to toggle source
# File lib/cumuli/cli/terminal.rb, line 27 def execute_command exec(command) end
spawn()
click to toggle source
# File lib/cumuli/cli/terminal.rb, line 16 def spawn bundled? ? call_bundled : execute_command end