class Glue::Scanner

Attributes

mounter[R]
tracker[R]

Public Class Methods

new() click to toggle source

Pass in path to the root of the Rails application

# File lib/glue/scanner.rb, line 10
def initialize
  @stage = :wait
  @stages = [ :wait, :mount, :file, :code, :live, :done]
end

Public Instance Methods

process(target, tracker) click to toggle source

Process everything in the Rails application

# File lib/glue/scanner.rb, line 16
def process target, tracker
  @stages.each do |stage|
    Glue.notify "Running tasks in stage: #{stage}"
    @stage = stage
    begin
       Glue::Tasks.run_tasks(target, stage, tracker)
    rescue Exception => e
      Glue.warn e.message
      raise e
    end
  end
end