Class: Fiveruns::Dash::InfoPayload
- Defined in:
- lib/fiveruns/dash/update.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(data, started_at) ⇒ InfoPayload
constructor
A new instance of InfoPayload.
- #params ⇒ Object
Methods inherited from Payload
Constructor Details
#initialize(data, started_at) ⇒ InfoPayload
Returns a new instance of InfoPayload.
155 156 157 158 |
# File 'lib/fiveruns/dash/update.rb', line 155 def initialize(data, started_at) super(data) @started_at = started_at end |
Instance Method Details
#params ⇒ Object
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/fiveruns/dash/update.rb', line 159 def params @params ||= begin params = { :type => 'info', :ip => Fiveruns::Dash.host.ip_address, :hostname => Fiveruns::Dash.host.hostname, :pid => Process.pid, :os_name => Fiveruns::Dash.host.os_name, :os_version => Fiveruns::Dash.host.os_version, :arch => Fiveruns::Dash.host.architecture, :dash_version => Fiveruns::Dash::Version::STRING, :ruby_version => RUBY_VERSION, :started_at => @started_at } if (scm = Fiveruns::Dash.scm) params.update( :scm_revision => scm.revision, :scm_time => scm.time, :scm_type => scm.class.scm_type, :scm_url => scm.url ) end params end end |