Class: Coral::Core

Inherits:
Config show all
Defined in:
lib/coral_core/core.rb

Direct Known Subclasses

Event, Plugin::Base, Repository, Util::Shell

Constant Summary collapse

@@ui =

Properties

Util::Interface.new("coral")

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Config

#[], #[]=, array, #array, #clear, #defaults, #delete, ensure, #export, filter, #filter, #get, #get_array, #get_hash, #hash, hash, #import, #init, init, init_flat, #set, string, #string, #string_map, string_map, symbol, #symbol, #symbol_map, symbol_map, test, #test

Methods included from Mixin::ConfigOptions

#clear_options, #contexts, #get_options, #set_options

Methods included from Mixin::ConfigCollection

#all_properties, #clear_properties, #delete_property, #get_property, #save_properties, #set_property

Methods included from Mixin::Lookup

#hiera, #hiera_config, #initialized?, #lookup, #lookup_array, #lookup_hash, #normalize

Methods included from Mixin::ConfigOps

#parse

Constructor Details

#initialize(data = {}, defaults = {}, force = true) ⇒ Core


Constructor / Destructor



13
14
15
16
17
# File 'lib/coral_core/core.rb', line 13

def initialize(data = {}, defaults = {}, force = true)
  super(data, defaults, force)
  
  @ui = Util::Interface.new(export)
end

Instance Attribute Details

#uiObject


Accessor / Modifiers



28
29
30
# File 'lib/coral_core/core.rb', line 28

def ui
  @ui
end

Class Method Details

.loggerObject




38
39
40
# File 'lib/coral_core/core.rb', line 38

def self.logger
  return @@ui.logger
end

.logger=(logger) ⇒ Object




44
45
46
# File 'lib/coral_core/core.rb', line 44

def self.logger=logger
  self.class.logger = logger
end

.uiObject




32
33
34
# File 'lib/coral_core/core.rb', line 32

def self.ui
  return @@ui
end

Instance Method Details

#inspectObject




21
22
23
# File 'lib/coral_core/core.rb', line 21

def inspect
  "#<#{self.class}: >"
end

#loggerObject




50
51
52
# File 'lib/coral_core/core.rb', line 50

def logger
  return self.class.logger
end