Class: TeamcityHooks::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/teamcity_hooks/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#config_fileObject

Returns the value of attribute config_file.



22
23
24
# File 'lib/teamcity_hooks/configuration.rb', line 22

def config_file
  @config_file
end

#endpointObject

Returns the value of attribute endpoint.



22
23
24
# File 'lib/teamcity_hooks/configuration.rb', line 22

def endpoint
  @endpoint
end

#passwordObject

Returns the value of attribute password.



22
23
24
# File 'lib/teamcity_hooks/configuration.rb', line 22

def password
  @password
end

#usernameObject

Returns the value of attribute username.



22
23
24
# File 'lib/teamcity_hooks/configuration.rb', line 22

def username
  @username
end

Instance Method Details

#configObject



36
37
38
# File 'lib/teamcity_hooks/configuration.rb', line 36

def config
  OpenStruct.new(YALM.load_file(@config_file))
end