Module: GClouder::Resources::PubSub::Topics
- Includes:
- Config::CLIArgs, Config::Project, Logging, GClouder::Resource::Cleaner
- Defined in:
- lib/gclouder/resources/pubsub/topics.rb
Defined Under Namespace
Class Method Summary collapse
Methods included from GClouder::Resource::Cleaner
#clean, #cleaner, included, #undefined
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 Config::Project
Methods included from Helpers
#hash_to_args, included, #module_exists?, #to_arg, #to_deep_merge_hash, #valid_json?
Methods included from Config::CLIArgs
check, #cli_args, cli_args, included, load, valid_resources
Class Method Details
.ensure ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/gclouder/resources/pubsub/topics.rb', line 16 def self.ensure return if Local.list.empty? header Local.list.each do |region, topics| info region, indent: 2, heading: true info topics.each do |topic| Topic.ensure(topic["name"]) end end end |
.header(stage = :ensure) ⇒ Object
12 13 14 |
# File 'lib/gclouder/resources/pubsub/topics.rb', line 12 def self.header(stage = :ensure) info "[#{stage}] pub/sub / topics", indent: 1, title: true end |