Module: Capistrano::DSL::Stages
- Included in:
- Capistrano::DSL
- Defined in:
- lib/capistrano/dsl/stages.rb
Instance Method Summary collapse
Instance Method Details
#stage_definitions ⇒ Object
9 10 11 |
# File 'lib/capistrano/dsl/stages.rb', line 9 def stage_definitions stage_config_path.join('*.rb') end |
#stage_set? ⇒ Boolean
13 14 15 |
# File 'lib/capistrano/dsl/stages.rb', line 13 def stage_set? !!fetch(:stage, false) end |
#stages ⇒ Object
5 6 7 |
# File 'lib/capistrano/dsl/stages.rb', line 5 def stages Dir[stage_definitions].map { |f| File.basename(f, '.rb') } end |