Class: Boxing::Config
- Inherits:
-
Object
- Object
- Boxing::Config
- Defined in:
- lib/boxing/config.rb
Overview
The config of boxing
Instance Attribute Summary collapse
- #assets_precompile ⇒ Object
- #build_packages ⇒ Object
- #health_check ⇒ Object
- #health_check_path ⇒ Object
- #ignores ⇒ Object
- #name ⇒ Object
- #node_version ⇒ Object
- #port ⇒ Object
- #registry ⇒ Object
-
#root ⇒ String
The application root.
- #runtime_packages ⇒ Object
Instance Method Summary collapse
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
18 19 20 21 22 23 24 25 26 |
# File 'lib/boxing/config.rb', line 18 def initialize(&block) @name = 'myapp' @root = '/srv/app' @port = 9292 @health_path = '/status' @assets_precompile = false instance_exec(self, &block) if defined?(yield) end |
Instance Attribute Details
#assets_precompile ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def assets_precompile @assets_precompile end |
#build_packages ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def build_packages @build_packages end |
#health_check ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def health_check @health_check end |
#health_check_path ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def health_check_path @health_check_path end |
#ignores ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def ignores @ignores end |
#name ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def name @name end |
#node_version ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def node_version @node_version end |
#port ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def port @port end |
#registry ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def registry @registry end |
#root ⇒ String
Returns the application root.
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def root @root end |
#runtime_packages ⇒ Object
12 13 14 |
# File 'lib/boxing/config.rb', line 12 def runtime_packages @runtime_packages end |