mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
15 lines
300 B
Ruby
15 lines
300 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
|