Sha256: e12696fb7be8d6c9bffa372dc0a586a12e844c0a624b89600019372c6043deba

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

module Percheron
  module Commands
    class Build < Abstract

      default_parameters!
      option('--usecache', :flag, 'Use image cache', default: true)
      option('--forcerm', :flag, 'Force removal of intermediate containers', default: false)

      def execute
        super
        runit { stack.build!(unit_names: unit_names, usecache: usecache?, forcerm: forcerm?) }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
percheron-0.8.1 lib/percheron/commands/build.rb
percheron-0.8.0 lib/percheron/commands/build.rb