Module: BuildNotifiers::ProgressNotifier::TrackPhase
- Defined in:
- lib/build_notifiers/progress_notifier.rb
Class Method Summary collapse
Class Method Details
.last_phase?(filter) ⇒ Boolean
49 50 51 |
# File 'lib/build_notifiers/progress_notifier.rb', line 49 def self.last_phase?(filter) FILTER_PHASES[lookup_phase(filter)].first == filter.class end |
.lookup_phase(filter) ⇒ Object
43 44 45 46 47 |
# File 'lib/build_notifiers/progress_notifier.rb', line 43 def self.lookup_phase(filter) FILTER_PHASES.keys.detect do |phase| FILTER_PHASES[phase].include? filter.class end || :none end |