lib/percheron/container/actions/create.rb in percheron-0.2.3 vs lib/percheron/container/actions/create.rb in percheron-0.2.4

- old
+ new

@@ -6,11 +6,15 @@ def initialize(container) @container = container end def execute! - Container::Actions::Build.new(container).execute! unless image_exists? - $logger.debug "Creating '#{container.name}'" + unless image_exists? + $logger.debug "Creating '#{container.image}' image" + Container::Actions::Build.new(container).execute! + end + + $logger.debug "Creating '#{container.name}' container" Docker::Container.create(create_opts) end private