module Capistrano::DSL::Stages

Public Instance Methods

stage_definitions() click to toggle source
# File lib/capistrano/dsl/stages.rb, line 8
def stage_definitions
  stage_config_path.join("*.rb")
end
stage_set?() click to toggle source
# File lib/capistrano/dsl/stages.rb, line 12
def stage_set?
  !!fetch(:stage, false)
end
stages() click to toggle source
# File lib/capistrano/dsl/stages.rb, line 4
def stages
  Dir[stage_definitions].map { |f| File.basename(f, ".rb") }
end