Class: Currentsh::Process
- Inherits:
-
Object
- Object
- Currentsh::Process
- Defined in:
- lib/currentsh/process.rb
Instance Method Summary collapse
-
#initialize ⇒ Process
constructor
A new instance of Process.
- #track_rails!(app) ⇒ Object
Constructor Details
#initialize ⇒ Process
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 |