lib/dev-lxc/server.rb in dev-lxc-2.3.1 vs lib/dev-lxc/server.rb in dev-lxc-2.3.2
- old
+ new
@@ -19,13 +19,14 @@
def status
@container.status
end
- def run_command(command)
+ def run_command(command, output_file=nil)
if @container.running?
puts "Running '#{command}' in '#{@container.name}'"
- @container.run_command(command)
+ puts "Saving output to #{output_file}" if output_file
+ @container.run_command(command, output_file)
else
puts "'#{@container.name}' is not running"
end
end