Module: Ferry::DSL::Stages

Included in:
Ferry::DSL
Defined in:
lib/ferry/dsl/stages.rb

Instance Method Summary collapse

Instance Method Details

#stage_definitionsObject



9
10
11
# File 'lib/ferry/dsl/stages.rb', line 9

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

#stage_set?Boolean

Returns:

  • (Boolean)


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

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

#stagesObject



5
6
7
# File 'lib/ferry/dsl/stages.rb', line 5

def stages
  Dir[stage_definitions].map { |f| File.basename(f, '.rb') }
end