Class: Currentsh::Process

Inherits:
Object
  • Object
show all
Defined in:
lib/currentsh/process.rb

Instance Method Summary collapse

Constructor Details

#initializeProcess

Returns a new instance of Process.



5
6
7
8
# File 'lib/currentsh/process.rb', line 5

def initialize
  @output = LogOutput.new
  @trackers = []
end

Instance Method Details

#track_rails!(app) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/currentsh/process.rb', line 10

def track_rails!(app)
  @output << { :type => "boot", :application => app.class.name }
  rails = RailsTracker.new(@output)
  rails.register

  @trackers << rails
end