Module: GClouder::Resources::Compute::URLMaps
- Includes:
- GCloud, Logging, GClouder::Resource::Cleaner
- Defined in:
- lib/gclouder/resources/compute/url_maps.rb
Defined Under Namespace
Modules: Local, PathMatcher, Remote, URLMap
Class Method Summary collapse
Methods included from GClouder::Resource::Cleaner
#clean, #cleaner, included, #undefined
Methods included from GCloud
Methods included from Config::CLIArgs
cli_args, #cli_args, included, load, valid_resources
Methods included from Config::Project
Methods included from Helpers
#hash_to_args, included, #module_exists?, #to_arg, #to_deep_merge_hash, #valid_json?
Methods included from Logging
#add, #bad, #change, #debug, #error, #fatal, #good, included, #info, log, loggers, #remove, report, #resource_state, setup, #warn, #warning
Methods included from Shell
Class Method Details
.check ⇒ Object
38 39 |
# File 'lib/gclouder/resources/compute/url_maps.rb', line 38 def self.check end |
.ensure ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# 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) ⇒ Object
11 12 13 |
# 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 |