class OpenSource::License::Owner
Public Instance Methods
credentials()
click to toggle source
# File lib/open_source/license/owner.rb, line 14 def credentials @credentials ||= YAML.load_file(CONFIG_PATH) end
credentials=(credentials)
click to toggle source
# File lib/open_source/license/owner.rb, line 6 def credentials=(credentials) config_file = File.new(CONFIG_PATH, 'w') file_contents = YAML.dump(credentials) config_file.write(file_contents) rescue StandardError => ex OpenSource.logger.fatal("Unable to access #{CONFIG_PATH}") end
email()
click to toggle source
# File lib/open_source/license/owner.rb, line 18 def email credentials[:email] end
markdown_supported_email()
click to toggle source
# File lib/open_source/license/owner.rb, line 22 def markdown_supported_email "<#{credentials[:email]}>" end
name()
click to toggle source
# File lib/open_source/license/owner.rb, line 26 def name credentials[:name] end