Class: ZAWS::Newrelicapi::NewrelicCreds::Creds::YamlFile

Inherits:
ZAWS::Newrelicapi::NewrelicCreds::Creds show all
Defined in:
lib/zaws/external/newrelicapi/newrelic_creds.rb

Overview

Subclass that loads creds from a YAML file.

Constant Summary collapse

FILENAME =
'.newrelic.yml'

Instance Method Summary collapse

Methods inherited from ZAWS::Newrelicapi::NewrelicCreds::Creds

#api_key, #url

Constructor Details

#initialize(home) ⇒ YamlFile

Returns a new instance of YamlFile.



37
38
39
# File 'lib/zaws/external/newrelicapi/newrelic_creds.rb', line 37

def initialize(home)
  @creds_file = File.join(home, FILENAME)
end