Module: CM::Facade

Included in:
CM
Defined in:
lib/core/facade.rb

Instance Method Summary collapse

Instance Method Details

#batch(options, provider = nil) ⇒ Object




48
49
50
# File 'lib/core/facade.rb', line 48

def batch(options, provider = nil)
  Nucleon.plugin(:CM, :batch, provider, options)
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_pathObject


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(options, provider = nil)
  Nucleon.plugin(:CM, :configuration, provider, options)
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(options, provider = nil)
  Nucleon.plugin(:CM, :function, provider, options)
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, options = {}, provider = nil)
  Nucleon.plugin(:CM, :plan, provider, Nucleon::Config.ensure(options).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(options, provider = nil)
  Nucleon.plugin(:CM, :resource, provider, options)
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(options = {}, provider = nil)
  Nucleon.plugin(:CM, :sequence, provider, options)
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