lib/dev-lxc/container.rb in dev-lxc-2.3.0 vs lib/dev-lxc/container.rb in dev-lxc-2.3.1

- old
+ new

@@ -29,17 +29,17 @@ puts "ERROR: Container '#{self.name}' network is not available." exit 1 end end - def stop - puts "Stopping container '#{self.name}'" + def shutdown + puts "Shutting down container '#{self.name}'" super - wait("STOPPED", 3) + wait(:stopped, 3) end def destroy - stop if running? + shutdown if running? puts "Destroying container '#{self.name}'" super if self.defined? end def sync_mounts(mounts)