Class: Vmpooler::API
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Vmpooler::API
show all
- Defined in:
- lib/vmpooler/api.rb,
lib/vmpooler/api/v1.rb,
lib/vmpooler/api/helpers.rb,
lib/vmpooler/api/reroute.rb,
lib/vmpooler/api/dashboard.rb
Defined Under Namespace
Modules: Helpers
Classes: Dashboard, Reroute, V1
Instance Method Summary
collapse
Constructor Details
#initialize ⇒ API
3
4
5
|
# File 'lib/vmpooler/api.rb', line 3
def initialize
super
end
|
Instance Method Details
39
40
41
42
43
44
|
# File 'lib/vmpooler/api.rb', line 39
def configure(config, redis, metrics)
self.settings.set :config, config
self.settings.set :redis, redis
self.settings.set :metrics, metrics
self.settings.set :checkoutlock, Mutex.new
end
|
#execute! ⇒ Object
46
47
48
|
# File 'lib/vmpooler/api.rb', line 46
def execute!
self.settings.run!
end
|