Sha256: a1bd868104cbe6d4920ec02467cc5a88c3fdbff21e9bd9e74ac5ab0b062620e3
Contents?: true
Size: 514 Bytes
Versions: 42
Compression:
Stored size: 514 Bytes
Contents
# execute the specified stage so that recipes required in stage can contribute to task list on :load do if stages.include?(ARGV.first) find_and_execute_task(ARGV.first) if ARGV.any?{ |option| option =~ /-T|--tasks|-e|--explain/ } end end namespace :multistage do task :ensure do unless exists?(:current_stage) abort "No stage specified. Please specify one of: #{stages.join(', ')} (e.g. `cap #{stages.first} #{ARGV.last}')" end end end on :start, "multistage:ensure", :except => stages
Version data entries
42 entries across 42 versions & 1 rubygems