lib/percheron/actions/start.rb in percheron-0.6.2 vs lib/percheron/actions/start.rb in percheron-0.6.3

- old
+ new

@@ -8,11 +8,11 @@ @container = container @dependant_containers = dependant_containers end def execute! - create_or_recreate! + create! unless container.exists? unless container.running? start! execute_post_start_scripts! unless container.post_start_scripts.empty? end container @@ -20,19 +20,11 @@ private attr_reader :container, :dependant_containers - def create_or_recreate! - container.exists? ? recreate! : create! - end - def create! Create.new(container).execute! - end - - def recreate! - Recreate.new(container).execute! end def start! $logger.info "Starting '#{container.name}' container" container.docker_container.start!