mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Centralize external Gem loading
This commit is contained in:
parent
60cc1ef178
commit
60eead6455
4 changed files with 9 additions and 20 deletions
|
|
@ -1,13 +1,6 @@
|
|||
module Vmpooler
|
||||
class API
|
||||
def initialize
|
||||
require 'sinatra/base'
|
||||
|
||||
require 'json'
|
||||
require 'open-uri'
|
||||
require 'redis'
|
||||
require 'yaml'
|
||||
|
||||
# Load the configuration file
|
||||
config_file = File.expand_path('vmpooler.yaml')
|
||||
$config = YAML.load_file(config_file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue