Class: Terrapin::CommandLine::BackticksRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/terrapin/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/terrapin/command_line/runners/backticks_runner.rb', line 8

def self.supported?
  true
end

Instance Method Details

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


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

def call(command, env = {}, options = {})
  with_modified_environment(env) do
    Output.new(`#{command}`)
  end
end

#supported?Boolean

Returns:

  • (Boolean)

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

def supported?
  self.class.supported?
end