Sha256: 9ac649b8ea15358fb4a7728bced8fc0cbd9cc7ca9fed215163c9c3aafc183c24
Contents?: true
Size: 627 Bytes
Versions: 27
Compression:
Stored size: 627 Bytes
Contents
require File.dirname(__FILE__) + '/base' unless defined?(Capper) Capper.load do # 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 end
Version data entries
27 entries across 27 versions & 1 rubygems