Class: Munge::Bootloader
- Inherits:
-
Object
- Object
- Munge::Bootloader
- Defined in:
- lib/munge/bootloader.rb
Overview
This class is useful for loading the application.
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
-
#rules_path ⇒ Object
readonly
Returns the value of attribute rules_path.
-
#setup_path ⇒ Object
readonly
Returns the value of attribute setup_path.
Instance Method Summary collapse
-
#initialize(root_path:) ⇒ Bootloader
constructor
A new instance of Bootloader.
Constructor Details
#initialize(root_path:) ⇒ Bootloader
Returns a new instance of Bootloader.
5 6 7 8 9 10 11 12 |
# File 'lib/munge/bootloader.rb', line 5 def initialize(root_path:) @root_path = root_path @setup_path = File.join(root_path, "setup.rb") @rules_path = File.join(root_path, "rules.rb") config_path = File.join(root_path, "config.rb") @config = Munge::PreInit.new(config_path).config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
17 18 19 |
# File 'lib/munge/bootloader.rb', line 17 def config @config end |
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
14 15 16 |
# File 'lib/munge/bootloader.rb', line 14 def root_path @root_path end |
#rules_path ⇒ Object (readonly)
Returns the value of attribute rules_path.
16 17 18 |
# File 'lib/munge/bootloader.rb', line 16 def rules_path @rules_path end |
#setup_path ⇒ Object (readonly)
Returns the value of attribute setup_path.
15 16 17 |
# File 'lib/munge/bootloader.rb', line 15 def setup_path @setup_path end |