Module: GClouder::Resources::Compute::ForwardingRules
Defined Under Namespace
Modules: Local, Remote, Rule
Class Method Summary
collapse
#clean, #cleaner, included, #undefined
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
.check ⇒ Object
32
33
|
# File 'lib/gclouder/resources/compute/forwarding_rules.rb', line 32
def self.check
end
|
.ensure ⇒ Object
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/gclouder/resources/compute/forwarding_rules.rb', line 14
def self.ensure
return if Local.list.empty?
Local.list.each do |region, rules|
info region, heading: true, indent: 2
info
rules.each do |rule|
Rule.ensure(rule["name"], rule)
end
end
end
|
10
11
12
|
# File 'lib/gclouder/resources/compute/forwarding_rules.rb', line 10
def self.(stage = :ensure)
info "[#{stage}] compute / forwarding-rules", indent: 1, title: true
end
|
.validate ⇒ Object
26
27
28
29
30
|
# File 'lib/gclouder/resources/compute/forwarding_rules.rb', line 26
def self.validate
return if Local.list.empty?
:validate
Local.validate
end
|