Sha256: 5974fccb636d2c748dcd5ea79ff99678e9dc1d46f02fff31ca651359fab5e439

Contents?: true

Size: 292 Bytes

Versions: 48

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

48 entries across 48 versions & 1 rubygems

Version Path
foreman_remote_execution-14.1.2 app/models/template_invocation_event.rb
foreman_remote_execution-14.1.1 app/models/template_invocation_event.rb
foreman_remote_execution-14.1.0 app/models/template_invocation_event.rb
foreman_remote_execution-14.0.2 app/models/template_invocation_event.rb
foreman_remote_execution-14.0.1 app/models/template_invocation_event.rb
foreman_remote_execution-13.2.6 app/models/template_invocation_event.rb
foreman_remote_execution-14.0.0 app/models/template_invocation_event.rb
foreman_remote_execution-13.2.5 app/models/template_invocation_event.rb
foreman_remote_execution-13.2.4 app/models/template_invocation_event.rb
foreman_remote_execution-13.2.3 app/models/template_invocation_event.rb
foreman_remote_execution-13.2.2 app/models/template_invocation_event.rb
foreman_remote_execution-12.0.7 app/models/template_invocation_event.rb
foreman_remote_execution-13.2.1 app/models/template_invocation_event.rb
foreman_remote_execution-13.2.0 app/models/template_invocation_event.rb
foreman_remote_execution-10.1.3 app/models/template_invocation_event.rb
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