lib/percheron/commands/build.rb in percheron-0.7.16 vs lib/percheron/commands/build.rb in percheron-0.8.0
- old
+ new
@@ -1,14 +1,15 @@
module Percheron
module Commands
class Build < Abstract
default_parameters!
- option('--forcerm', :flag, 'force removal of intermediate containers', default: false)
+ option('--usecache', :flag, 'Use image cache', default: true)
+ option('--forcerm', :flag, 'Force removal of intermediate containers', default: false)
def execute
super
- stack.build!(unit_names: unit_names, forcerm: forcerm?)
+ runit { stack.build!(unit_names: unit_names, usecache: usecache?, forcerm: forcerm?) }
end
end
end
end