Module: GClouder::Resources::Functions::Function::Local

Includes:
Config::CLIArgs, Config::Project, Logging
Defined in:
lib/gclouder/resources/functions/function.rb

Class Method Summary collapse

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

load, #project, 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

.listObject



48
49
50
# File 'lib/gclouder/resources/functions/function.rb', line 48

def self.list
  Resources::Region.instances(path: %w(functions))
end

.validateObject



40
41
42
43
44
45
46
# File 'lib/gclouder/resources/functions/function.rb', line 40

def self.validate
  Resources::Validate::Region.instances(
    list,
    required_keys:  GClouder::Config::Arguments.required(%w(functions)),
    permitted_keys: GClouder::Config::Arguments.permitted(%w(functions))
  )
end