module Cumulus::AutoScaling::Loader
Public: Load AutoScaling
assets
Public Class Methods
group(file)
click to toggle source
Public: Load a single autoscaling group configuration as a GroupConfig
object
file - the name of the file the configuration is located in
Returns the corresponding GroupConfig
object
# File lib/autoscaling/loader/Loader.rb, line 31 def Loader.group(file) Common::BaseLoader.resource(file, @@groups_dir, &@@group_loader) end
groups()
click to toggle source
Public: Load all autoscaling group configurations as GroupConfig
objects
Returns an array of GroupConfig
objects
# File lib/autoscaling/loader/Loader.rb, line 21 def Loader.groups Common::BaseLoader.resources(@@groups_dir, &@@group_loader) end
static_policy(file)
click to toggle source
Public: Load a static scaling policy
file - the file the policy definition is found in
Returns a PolicyConfig
object that contains the configuration
# File lib/autoscaling/loader/Loader.rb, line 40 def Loader.static_policy(file) Common::BaseLoader.resource(file, @@static_dir, &@@policy_loader) end
template_policy(file, variables)
click to toggle source
Public: Load a template scaling policy
file - the file the template definition is found in variables - a Hash of variables to apply to the template
Returns a PolicyConfig
object corresponding to the applied template
# File lib/autoscaling/loader/Loader.rb, line 50 def Loader.template_policy(file, variables) Common::BaseLoader.template(file, @@template_dir, variables, &@@policy_loader) end