Module: GClouder::Config::Arguments

Includes:
Logging
Included in:
GClouder, Resources::Compute::Disks, Resources::Compute::Networks::Subnets, Resources::Compute::Routers
Defined in:
lib/gclouder/config/arguments.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Logging

#add, #bad, #change, #debug, #error, #fatal, #good, #info, log, loggers, #remove, report, #resource_state, setup, #warn, #warning

Class Method Details

.argumentsObject



10
11
12
# File 'lib/gclouder/config/arguments.rb', line 10

def self.arguments
  GClouder::ConfigLoader.load("../../assets/arguments")
end

.included(klass) ⇒ Object



22
23
24
# File 'lib/gclouder/config/arguments.rb', line 22

def self.included(klass)
  klass.extend Arguments
end

.loadObject



14
15
16
# File 'lib/gclouder/config/arguments.rb', line 14

def self.load
  arguments
end

.permitted(section) ⇒ Object



26
27
28
# File 'lib/gclouder/config/arguments.rb', line 26

def self.permitted(section)
  GClouder::ConfigSection.find(section, arguments)
end

.required(section) ⇒ Object



30
31
32
# File 'lib/gclouder/config/arguments.rb', line 30

def self.required(section)
  GClouder::ConfigSection.find(section, arguments).delete_if { |key, values| ! values["required"] }
end

Instance Method Details

#argumentsObject



18
19
20
# File 'lib/gclouder/config/arguments.rb', line 18

def arguments
  Arguments.arguments
end