Class: Dev::TargetProcess::Config
- Defined in:
- lib/firespring_dev_commands/target_process.rb
Overview
Config object for setting top level target process config options
Instance Attribute Summary collapse
-
#http_debug ⇒ Object
Returns the value of attribute http_debug.
-
#password ⇒ Object
Returns the value of attribute password.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
20 21 22 23 24 25 26 27 |
# File 'lib/firespring_dev_commands/target_process.rb', line 20 def initialize Dotenv.load(CONFIG_FILE) if File.exist?(CONFIG_FILE) self.username = ENV.fetch(TP_USERNAME, nil) self.password = ENV.fetch(TP_PASSWORD, nil) self.url = ENV.fetch(TP_URL, nil) self.http_debug = false end |
Instance Attribute Details
#http_debug ⇒ Object
Returns the value of attribute http_debug
19 20 21 |
# File 'lib/firespring_dev_commands/target_process.rb', line 19 def http_debug @http_debug end |
#password ⇒ Object
Returns the value of attribute password
19 20 21 |
# File 'lib/firespring_dev_commands/target_process.rb', line 19 def password @password end |
#url ⇒ Object
Returns the value of attribute url
19 20 21 |
# File 'lib/firespring_dev_commands/target_process.rb', line 19 def url @url end |
#username ⇒ Object
Returns the value of attribute username
19 20 21 |
# File 'lib/firespring_dev_commands/target_process.rb', line 19 def username @username end |