module GClouder::Resources::Storage::Notifications

Public Class Methods

ensure() click to toggle source
# File lib/gclouder/resources/storage/notifications.rb, line 20
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 |notification|
      info
      Notification.ensure(notification)
    end
  end
end
header(stage = :ensure) click to toggle source
# File lib/gclouder/resources/storage/notifications.rb, line 10
def self.header(stage = :ensure)
  info "[#{stage}] storage / notifications", title: true, indent: 1
end
validate() click to toggle source
# File lib/gclouder/resources/storage/notifications.rb, line 14
def self.validate
  return if Local.list.empty?
  header :validate
  Local.validate
end