lib/percheron/commands/create.rb in percheron-0.7.16 vs lib/percheron/commands/create.rb in percheron-0.8.0

- old
+ new

@@ -1,13 +1,18 @@ module Percheron module Commands class Create < Abstract - default_create_parameters! + default_parameters! + option('--start', :flag, '(Re)start unit once created', default: true) + option('--build', :flag, '(Re)build image', default: true) + option('--deep', :flag, 'Include needed units', default: false) + option('--force', :flag, 'Force unit (re)creation', default: false) def execute super - stack.create!(unit_names: unit_names, start: start?) + opts = { unit_names: unit_names, build: build?, start: start?, deep: deep?, force: force? } + runit { stack.create!(opts) } end end end end