Class: OmfRcShm::App

Inherits:
Object
  • Object
show all
Includes:
DSL, Singleton
Defined in:
lib/omf_rc_shm/app.rb,
lib/omf_rc_shm/app/dsl.rb,
lib/omf_rc_shm/app/definition.rb

Defined Under Namespace

Modules: DSL Classes: Definition

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL

#defApplication, #defDefaultGroup

Constructor Details

#initializeApp

Returns a new instance of App.



15
16
17
18
19
20
# File 'lib/omf_rc_shm/app.rb', line 15

def initialize
  super
  @definitions ||= Hash.new
  @watchdog = nil
  @default_groups = []
end

Instance Attribute Details

#default_groupsObject

Returns the value of attribute default_groups.



12
13
14
# File 'lib/omf_rc_shm/app.rb', line 12

def default_groups
  @default_groups
end

#definitionsObject

Returns the value of attribute definitions.



10
11
12
# File 'lib/omf_rc_shm/app.rb', line 10

def definitions
  @definitions
end

#watchdogObject

Returns the value of attribute watchdog.



11
12
13
# File 'lib/omf_rc_shm/app.rb', line 11

def watchdog
  @watchdog
end

Instance Method Details

#load_definition(file_path) ⇒ Object



22
23
24
# File 'lib/omf_rc_shm/app.rb', line 22

def load_definition(file_path)
  eval(File.read(file_path))
end