module GClouder::Resources::Functions::Function

Public Class Methods

ensure() click to toggle source
# File lib/gclouder/resources/functions/function.rb, line 16
def self.ensure
  return if Local.list.empty?
  header

  Local.list.each do |region, functions|
    info region, indent: 2, heading: true
    info
    functions.each do |function|
      Function.ensure(region, function)
    end
  end
end
header(stage = :ensure) click to toggle source
# File lib/gclouder/resources/functions/function.rb, line 12
def self.header(stage = :ensure)
  info "[#{stage}] functions / function", indent: 1, title: true
end
validate() click to toggle source
# File lib/gclouder/resources/functions/function.rb, line 29
def self.validate
  return if Local.list.empty?
  header :validate
  Local.validate
end