Module: GClouder::Resources::Container::Clusters
- Includes:
- Config::Project, Logging, GClouder::Resource::Cleaner
- Defined in:
- lib/gclouder/resources/container/clusters.rb
Defined Under Namespace
Modules: Cluster, Config, Local, Remote
Class Method Summary collapse
Methods included from GClouder::Resource::Cleaner
#clean, #cleaner, included, #undefined
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
Class Method Details
.ensure ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/gclouder/resources/container/clusters.rb', line 73 def self.ensure return if Local.list.empty? header Local.list.each do |region, region_config| info region, heading: true, indent: 2 region_config.each do |cluster| info Cluster.build(region, cluster) end end end |
.header(stage = :ensure) ⇒ Object
63 64 65 |
# File 'lib/gclouder/resources/container/clusters.rb', line 63 def self.header(stage = :ensure) info "[#{stage}] container / clusters", title: true end |