Class: AmoebaDeployTools::InteractiveCocaineRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/amoeba_deploy_tools/interactive_cocaine_runner.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.supported?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/amoeba_deploy_tools/interactive_cocaine_runner.rb', line 4

def self.supported?
  true
end

Instance Method Details

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



12
13
14
15
16
17
# File 'lib/amoeba_deploy_tools/interactive_cocaine_runner.rb', line 12

def call(command, env = {})
  with_modified_environment(env) do
    system(command)
  end
  ''
end

#supported?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/amoeba_deploy_tools/interactive_cocaine_runner.rb', line 8

def supported?
  self.class.supported?
end