Method: DevLXC::Server#run_command

Defined in:
lib/dev-lxc/server.rb

#run_command(command) ⇒ Object



24
25
26
27
28
29
30
31
# File 'lib/dev-lxc/server.rb', line 24

def run_command(command)
  if @container.running?
    puts "Running '#{command}' in '#{@container.name}'"
    @container.run_command(command)
  else
    puts "'#{@container.name}' is not running"
  end
end