Class: TeamcityHooks::Configuration
- Inherits:
-
Object
- Object
- TeamcityHooks::Configuration
- Defined in:
- lib/teamcity_hooks/configuration.rb
Instance Attribute Summary collapse
-
#config_file ⇒ Object
Returns the value of attribute config_file.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#config_file ⇒ Object
Returns the value of attribute config_file.
22 23 24 |
# File 'lib/teamcity_hooks/configuration.rb', line 22 def config_file @config_file end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
22 23 24 |
# File 'lib/teamcity_hooks/configuration.rb', line 22 def endpoint @endpoint end |
#password ⇒ Object
Returns the value of attribute password.
22 23 24 |
# File 'lib/teamcity_hooks/configuration.rb', line 22 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
22 23 24 |
# File 'lib/teamcity_hooks/configuration.rb', line 22 def username @username end |
Instance Method Details
#config ⇒ Object
36 37 38 |
# File 'lib/teamcity_hooks/configuration.rb', line 36 def config OpenStruct.new(YALM.load_file(@config_file)) end |