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-13.0.0 app/models/template_invocation_event.rb
foreman_remote_execution-12.0.5 app/models/template_invocation_event.rb
foreman_remote_execution-12.0.4 app/models/template_invocation_event.rb
foreman_remote_execution-12.0.1 app/models/template_invocation_event.rb
foreman_remote_execution-12.0.2 app/models/template_invocation_event.rb
foreman_remote_execution-11.1.3 app/models/template_invocation_event.rb
foreman_remote_execution-10.1.2 app/models/template_invocation_event.rb
foreman_remote_execution-12.0.0 app/models/template_invocation_event.rb
foreman_remote_execution-10.1.1 app/models/template_invocation_event.rb
foreman_remote_execution-11.1.1 app/models/template_invocation_event.rb
foreman_remote_execution-11.1.0 app/models/template_invocation_event.rb
foreman_remote_execution-10.1.0 app/models/template_invocation_event.rb
foreman_remote_execution-8.3.3 app/models/template_invocation_event.rb
foreman_remote_execution-8.3.2 app/models/template_invocation_event.rb
foreman_remote_execution-11.0.0 app/models/template_invocation_event.rb
foreman_remote_execution-10.0.7 app/models/template_invocation_event.rb
foreman_remote_execution-8.3.1 app/models/template_invocation_event.rb
foreman_remote_execution-10.0.6 app/models/template_invocation_event.rb
foreman_remote_execution-10.0.5 app/models/template_invocation_event.rb
foreman_remote_execution-10.0.4 app/models/template_invocation_event.rb