Class: Cocaine::CommandLine::BackticksRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/cocaine/command_line/runners/backticks_runner.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.supported?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/cocaine/command_line/runners/backticks_runner.rb', line 8

def self.supported?
  true
end

Instance Method Details

#call(command, env = {}) ⇒ Object



16
17
18
19
20
# File 'lib/cocaine/command_line/runners/backticks_runner.rb', line 16

def call(command, env = {})
  with_modified_environment(env) do
    `#{command}`
  end
end

#supported?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/cocaine/command_line/runners/backticks_runner.rb', line 12

def supported?
  self.class.supported?
end