Sha256: a1739d985e3c7b07c0585f128f500ae24a3875b89ae68f18c52c1d851a19cd26

Contents?: true

Size: 630 Bytes

Versions: 22

Compression:

Stored size: 630 Bytes

Contents

class RhosyncConsole::Server
  get '/' do
    unless login_required
      @license = nil
      handle_api_error("Can't get license information") do
        @license = RhosyncApi::get_license_info(session[:server],session[:token])
      end
      @sources = nil
      handle_api_error("Can't load list of application partition sources") do
        @sources = RhosyncApi::list_sources(session[:server],session[:token],:app)
      end
    end
    erb :index
  end
  
  get '/reset' do
    handle_api_error("Can't reset server") do
      RhosyncApi::reset(session[:server],session[:token])
    end
    redirect url('/'), 303
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rhosync-2.0.8 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.7 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.6 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.5 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.4 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.3 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.2 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.1 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.rc2 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.rc1 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta13 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta12 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta11 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta10 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta9 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta8 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta7 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta6 lib/rhosync/console/app/routes/home.rb
rhosync-2.0.0.beta4 lib/rhosync/console/app/routes/home.rb