Sha256: d57b834fd22a2759bff819c7f6b6e015d844f4f2f65cbce56ba0350cb797e9c4

Contents?: true

Size: 806 Bytes

Versions: 49

Compression:

Stored size: 806 Bytes

Contents

require_dependency "myreplicator/application_controller"

module Myreplicator

  class HomeController < ApplicationController
    def index  
      @tab = 'home'
      @option = 'overview'
      @exports = Export.order('state DESC')
      @logs = Log.where(:state => 'running').order("started_at DESC")
      @now = Time.zone.now
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @exports }
      end
    end

    def errors
      @tab = 'home'
      @option = 'errors'
      @exports = Export.where("error is not null").order('source_schema ASC')    
      @logs = Log.where(:state => 'error').order("started_at DESC") 
    end

    def kill
      @log = Log.find(params[:id])
      @log.kill
      redirect_to :action => 'index' 
    end
    
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
myreplicator-1.1.44 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.43 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.42 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.41 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.40 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.39 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.38 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.37 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.36 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.35 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.34 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.33 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.32 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.31 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.30 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.29 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.28 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.27 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.26 app/controllers/myreplicator/home_controller.rb
myreplicator-1.1.25 app/controllers/myreplicator/home_controller.rb