module GClouder::Resources::Compute::Routers

Public Class Methods

ensure() click to toggle source
# File lib/gclouder/resources/compute/routers.rb, line 24
def self.ensure
  return if Local.list.empty?
  header

  Local.list.each do |region, routers|
    next if routers.empty?
    info region, heading: true, indent: 2

    routers.each do |router|
      info
      Router.ensure(region, router["name"], hash_to_args(router))
    end
  end
end
header(stage = :ensure) click to toggle source
# File lib/gclouder/resources/compute/routers.rb, line 14
def self.header(stage = :ensure)
  info "[#{stage}] compute / router", title: true
end
validate() click to toggle source
# File lib/gclouder/resources/compute/routers.rb, line 18
def self.validate
  return if Local.list.empty?
  header :validate
  Local.validate
end