Module: Capistrano::DSL::Stages

Included in:
Capistrano::DSL
Defined in:
lib/capistrano/dsl/stages.rb

Instance Method Summary collapse

Instance Method Details

#stage_definitionsObject



13
14
15
# File 'lib/capistrano/dsl/stages.rb', line 13

def stage_definitions
  stage_config_path.join("*.rb")
end

#stage_set?Boolean



17
18
19
# File 'lib/capistrano/dsl/stages.rb', line 17

def stage_set?
  !!fetch(:stage, false)
end

#stagesObject



7
8
9
10
11
# File 'lib/capistrano/dsl/stages.rb', line 7

def stages
  names = Dir[stage_definitions].map { |f| File.basename(f, ".rb") }
  assert_valid_stage_names(names)
  names
end