Class: Appsignal::Config::Context Private
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- DSL_FILENAME =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"config/appsignal.rb"
Instance Attribute Summary collapse
- #env ⇒ Object readonly private
- #root_path ⇒ Object readonly private
Instance Method Summary collapse
- #dsl_config_file ⇒ Object private
- #dsl_config_file? ⇒ Boolean private
-
#initialize(env: nil, root_path: nil) ⇒ Context
constructor
private
A new instance of Context.
Constructor Details
#initialize(env: nil, root_path: nil) ⇒ Context
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Context.
74 75 76 77 |
# File 'lib/appsignal/config.rb', line 74 def initialize(env: nil, root_path: nil) @env = env @root_path = root_path end |
Instance Attribute Details
#env ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
72 73 74 |
# File 'lib/appsignal/config.rb', line 72 def env @env end |
#root_path ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
72 73 74 |
# File 'lib/appsignal/config.rb', line 72 def root_path @root_path end |
Instance Method Details
#dsl_config_file ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
79 80 81 |
# File 'lib/appsignal/config.rb', line 79 def dsl_config_file File.join(root_path, DSL_FILENAME) end |
#dsl_config_file? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
83 84 85 |
# File 'lib/appsignal/config.rb', line 83 def dsl_config_file? File.exist?(dsl_config_file) end |