Method: Procodile::Instance#to_hash

Defined in:
lib/procodile/instance.rb

#to_hashObject

Return this instance as a hash



334
335
336
337
338
339
340
341
342
343
344
345
# File 'lib/procodile/instance.rb', line 334

def to_hash
  {
    :description => self.description,
    :pid => self.pid,
    :respawns => self.respawns,
    :status => self.status,
    :running => self.running?,
    :started_at => @started_at ? @started_at.to_i : nil,
    :tag => self.tag,
    :port => @port
  }
end