Sha256: fcd4f6bbe910023543d59e165142a56dbaa5df085451915532e299f5c5f24610
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
require 'chronic' require 'json' module Dashboard # --------------------------------------------------------------------------- # Show application dashboard get '/dashboard/:app_name/:stage' do Wackamole::Control.switch_mole_db!( params[:app_name].downcase, params[:stage] ) ensure_indexes! load_app_details # Reset app info load_app_info # Reset filters @filter.reset! erb :'dashboard/index' end # --------------------------------------------------------------------------- # Refresh dashboard get '/dashboard/refresh' do load_app_details erb :'dashboard/refresh_js', :layout => false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wackamole-0.0.3 | lib/controllers/dashboard.rb |
wackamole-0.0.2 | lib/controllers/dashboard.rb |
wackamole-0.0.1 | lib/controllers/dashboard.rb |