class Cocaine::CommandLine::BackticksRunner

Public Class Methods

supported?() click to toggle source
# File lib/cocaine/command_line/runners/backticks_runner.rb, line 7
def self.supported?
  true
end

Public Instance Methods

call(command, env = {}) click to toggle source
# File lib/cocaine/command_line/runners/backticks_runner.rb, line 15
def call(command, env = {})
  with_modified_environment(env) do
    %x#{command}`
  end
end
supported?() click to toggle source
# File lib/cocaine/command_line/runners/backticks_runner.rb, line 11
def supported?
  self.class.supported?
end

Private Instance Methods

with_modified_environment(env, &block) click to toggle source
# File lib/cocaine/command_line/runners/backticks_runner.rb, line 23
def with_modified_environment(env, &block)
  ClimateControl.modify(env, &block)
end