Sha256: 63a1a8006151d791bb15725668c39792d46891a39cfd577fc6dea4331148c30a

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

module Percheron
  module Commands
    class Recreate < Abstract

      default_parameters!

      option "--force", :flag, 'Force recreation', default: false
      option "--delete", :flag, 'Delete container + image before recreation', default: false

      def execute
        opts = {
          container_names: container_names,
          force_recreate: force?,
          delete: delete?
        }

        stack.recreate!(opts)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
percheron-0.6.4 lib/percheron/commands/recreate.rb