Module: GClouder::Resources::Compute::URLMaps::PathMatcher
- Includes:
- GCloud
- Defined in:
- lib/gclouder/resources/compute/url_maps.rb
Class Method Summary collapse
Methods included from GCloud
Methods included from Config::CLIArgs
check, #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
.ensure(url_map_name, path_matcher) ⇒ Object
77 78 79 80 |
# File 'lib/gclouder/resources/compute/url_maps.rb', line 77 def self.ensure(url_map_name, path_matcher) good "path_matcher: #{path_matcher["name"]}", indent: 4 gcloud "compute url-maps add-path-matcher #{url_map_name} --path-matcher-name #{path_matcher["name"]} --default-backend-bucket #{path_matcher["default_backend_bucket"]} --new-hosts #{path_matcher["hosts"].join(",")}", silent: true end |