Module: CM::Facade
- Included in:
- CM
- Defined in:
- lib/core/facade.rb
Instance Method Summary collapse
-
#batch(options, provider = nil) ⇒ Object
—.
- #batches(data, build_hash = false, keep_array = false) ⇒ Object
-
#config_path ⇒ Object
—————————————————————————– Configuration settings.
-
#configuration(options, provider = nil) ⇒ Object
—.
- #configurations(data, build_hash = false, keep_array = false) ⇒ Object
-
#function(options, provider = nil) ⇒ Object
—.
- #functions(data, build_hash = false, keep_array = false) ⇒ Object
-
#plan(name, options = {}, provider = nil) ⇒ Object
—————————————————————————– Core plugin type facade.
- #plans(data, build_hash = false, keep_array = false) ⇒ Object
-
#resource(options, provider = nil) ⇒ Object
—.
- #resources(data, build_hash = false, keep_array = false) ⇒ Object
-
#sequence(options = {}, provider = nil) ⇒ Object
—.
- #sequences(data, build_hash = false, keep_array = false) ⇒ Object
Instance Method Details
#batch(options, provider = nil) ⇒ Object
48 49 50 |
# File 'lib/core/facade.rb', line 48 def batch(, provider = nil) Nucleon.plugin(:CM, :batch, provider, ) end |
#batches(data, build_hash = false, keep_array = false) ⇒ Object
52 53 54 |
# File 'lib/core/facade.rb', line 52 def batches(data, build_hash = false, keep_array = false) Nucleon.plugins(:CM, :batch, data, build_hash, keep_array) end |
#config_path ⇒ Object
Configuration settings
8 9 10 |
# File 'lib/core/facade.rb', line 8 def config_path ENV['CM_CONFIG_PATH'] || '/etc/cm' end |
#configuration(options, provider = nil) ⇒ Object
25 26 27 |
# File 'lib/core/facade.rb', line 25 def configuration(, provider = nil) Nucleon.plugin(:CM, :configuration, provider, ) end |
#configurations(data, build_hash = false, keep_array = false) ⇒ Object
29 30 31 |
# File 'lib/core/facade.rb', line 29 def configurations(data, build_hash = false, keep_array = false) Nucleon.plugins(:CM, :configuration, data, build_hash, keep_array) end |
#function(options, provider = nil) ⇒ Object
68 69 70 |
# File 'lib/core/facade.rb', line 68 def function(, provider = nil) Nucleon.plugin(:CM, :function, provider, ) end |
#functions(data, build_hash = false, keep_array = false) ⇒ Object
72 73 74 |
# File 'lib/core/facade.rb', line 72 def functions(data, build_hash = false, keep_array = false) Nucleon.plugins(:CM, :function, data, build_hash, keep_array) end |
#plan(name, options = {}, provider = nil) ⇒ Object
Core plugin type facade
15 16 17 |
# File 'lib/core/facade.rb', line 15 def plan(name, = {}, provider = nil) Nucleon.plugin(:CM, :plan, provider, Nucleon::Config.ensure().import({ :name => name })) end |
#plans(data, build_hash = false, keep_array = false) ⇒ Object
19 20 21 |
# File 'lib/core/facade.rb', line 19 def plans(data, build_hash = false, keep_array = false) Nucleon.plugins(:CM, :plan, data, build_hash, keep_array) end |
#resource(options, provider = nil) ⇒ Object
58 59 60 |
# File 'lib/core/facade.rb', line 58 def resource(, provider = nil) Nucleon.plugin(:CM, :resource, provider, ) end |
#resources(data, build_hash = false, keep_array = false) ⇒ Object
62 63 64 |
# File 'lib/core/facade.rb', line 62 def resources(data, build_hash = false, keep_array = false) Nucleon.plugins(:CM, :resource, data, build_hash, keep_array) end |
#sequence(options = {}, provider = nil) ⇒ Object
38 39 40 |
# File 'lib/core/facade.rb', line 38 def sequence( = {}, provider = nil) Nucleon.plugin(:CM, :sequence, provider, ) end |
#sequences(data, build_hash = false, keep_array = false) ⇒ Object
42 43 44 |
# File 'lib/core/facade.rb', line 42 def sequences(data, build_hash = false, keep_array = false) Nucleon.plugins(:CM, :sequence, data, build_hash, keep_array) end |