module GClouder::Resources::Compute::URLMaps

Public Class Methods

check() click to toggle source
# File lib/gclouder/resources/compute/url_maps.rb, line 38
def self.check
end
ensure() click to toggle source
# File lib/gclouder/resources/compute/url_maps.rb, line 15
def self.ensure
  return if Local.list.empty?
  header
  Local.list.each do |region, url_maps|
    info region, heading: true, indent: 2
    info
    url_maps.each do |url_map|
      URLMap.ensure(url_map["name"], url_map)

      next unless url_map.key?("path_matchers")
      url_map["path_matchers"].each do |path_matcher|
        PathMatcher.ensure(url_map["name"], path_matcher)
      end
    end
  end
end
header(stage = :ensure) click to toggle source
# File lib/gclouder/resources/compute/url_maps.rb, line 11
def self.header(stage = :ensure)
  info "[#{stage}] compute / url-maps", indent: 1, title: true
end
validate() click to toggle source
# File lib/gclouder/resources/compute/url_maps.rb, line 32
def self.validate
  return if Local.list.empty?
  header :validate
  Local.validate
end