Sha256: 5974fccb636d2c748dcd5ea79ff99678e9dc1d46f02fff31ca651359fab5e439

Contents?: true

Size: 292 Bytes

Versions: 53

Compression:

Stored size: 292 Bytes

Contents

class TemplateInvocationEvent < ::ApplicationRecord
  belongs_to :template_invocation

  def as_raw_continuous_output
    raw = attributes
    raw['output_type'] = raw.delete('event_type')
    raw['output'] = raw.delete('event')
    raw['timestamp'] = raw['timestamp'].to_f
    raw
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
foreman_remote_execution-10.0.3 app/models/template_invocation_event.rb
foreman_remote_execution-10.0.2 app/models/template_invocation_event.rb
foreman_remote_execution-10.0.1 app/models/template_invocation_event.rb
foreman_remote_execution-10.0.0 app/models/template_invocation_event.rb
foreman_remote_execution-8.3.0 app/models/template_invocation_event.rb
foreman_remote_execution-9.1.0 app/models/template_invocation_event.rb
foreman_remote_execution-8.2.1 app/models/template_invocation_event.rb
foreman_remote_execution-8.2.0 app/models/template_invocation_event.rb
foreman_remote_execution-9.0.1 app/models/template_invocation_event.rb
foreman_remote_execution-9.0.0 app/models/template_invocation_event.rb
foreman_remote_execution-8.1.2 app/models/template_invocation_event.rb
foreman_remote_execution-8.1.1 app/models/template_invocation_event.rb
foreman_remote_execution-8.1.0 app/models/template_invocation_event.rb