vmpooler/lib/vmpooler/dashboard.rb
Brandon High f22a84f26f
"Unsafe" rubocop fixes
Adds the remaining "unsafe" fixes that aren't included in #359
2020-03-05 11:23:37 -08:00

16 lines
301 B
Ruby

# frozen_string_literal: true
module Vmpooler
class Dashboard < Sinatra::Base
def config
Vmpooler.config
end
get '/dashboard/?' do
erb :dashboard, locals: {
site_name: ENV['SITE_NAME'] || config[:config]['site_name'] || '<b>vmpooler</b>'
}
end
end
end