Module: GClouder::Resources::Compute::Disks::Local

Includes:
Logging
Defined in:
lib/gclouder/resources/compute/disks.rb

Class Method Summary collapse

Methods included from Logging

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

Class Method Details

.listObject



60
61
62
# File 'lib/gclouder/resources/compute/disks.rb', line 60

def self.list
  Resources::Region.instances(path: %w(compute disks))
end

.sectionObject



56
57
58
# File 'lib/gclouder/resources/compute/disks.rb', line 56

def self.section
  ["compute", "disks"]
end

.validateObject



64
65
66
67
68
69
70
71
# File 'lib/gclouder/resources/compute/disks.rb', line 64

def self.validate
  Resources::Validate::Region.instances(
    list,
    required_keys:  GClouder::Config::Arguments.required(section),
    permitted_keys: GClouder::Config::Arguments.permitted(section),
    ignore_keys:    ["size"]
  )
end