Class: Eco::API::Common::Loaders::Config

Inherits:
Object
  • Object
show all
Extended by:
ClassHelpers, Language::Methods::DelegateMissing
Defined in:
lib/eco/api/common/loaders/config.rb

Direct Known Subclasses

Workflow, Eco::API::Custom::Config

Class Method Summary collapse

Methods included from ClassHelpers

class_resolver, descendants, descendants?, inheritable_attrs, inheritable_class_vars, inherited, instance_variable_name, new_class, resolve_class, to_constant

Methods included from Language::Methods::DelegateMissing

delegate_missing_to, method_missing, respond_to_missing?

Class Method Details

.active_enviroObject



21
22
23
# File 'lib/eco/api/common/loaders/config.rb', line 21

def active_enviro
  config.active_enviro
end

.cliObject



17
18
19
# File 'lib/eco/api/common/loaders/config.rb', line 17

def cli
  ASSETS.cli
end

.configObject



13
14
15
# File 'lib/eco/api/common/loaders/config.rb', line 13

def config
  ASSETS.config
end

.config_block(&block) ⇒ Object

To create samples of configurations



8
9
10
11
# File 'lib/eco/api/common/loaders/config.rb', line 8

def config_block(&block)
  return @config_block unless block_given?
  @config_block = block
end