Module: Actions::RemoteExecution::EventHelpers::ClassEventHelpers

Defined in:
app/lib/actions/remote_execution/event_helpers.rb

Instance Method Summary collapse

Instance Method Details

#event_namesObject



9
10
11
12
13
# File 'app/lib/actions/remote_execution/event_helpers.rb', line 9

def event_names
  event_states.map do |state|
    event_name_base + '_' + event_name_suffix(state).to_s
  end
end

#event_statesObject



5
6
7
# File 'app/lib/actions/remote_execution/event_helpers.rb', line 5

def event_states
  []
end

#feature_job_event_names(label) ⇒ Object



15
16
17
18
19
# File 'app/lib/actions/remote_execution/event_helpers.rb', line 15

def feature_job_event_names(label)
  event_states.map do |state|
    ::Foreman::Observable.event_name_for("#{event_name_base}_#{label}_#{event_name_suffix(state)}")
  end
end