module GClouder::Resources::PubSub::Topics
Public Class Methods
ensure()
click to toggle source
# 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)
click to toggle source
# File lib/gclouder/resources/pubsub/topics.rb, line 12 def self.header(stage = :ensure) info "[#{stage}] pub/sub / topics", indent: 1, title: true end
validate()
click to toggle source
# File lib/gclouder/resources/pubsub/topics.rb, line 29 def self.validate return if Local.list.empty? header :validate Local.validate end