Module: Thesslstore

Defined in:
lib/thesslstore.rb,
lib/thesslstore/client.rb,
lib/thesslstore/address.rb,
lib/thesslstore/contact.rb,
lib/thesslstore/version.rb,
lib/thesslstore/order/query.rb,
lib/thesslstore/auth_request.rb,
lib/thesslstore/admin_contact.rb,
lib/thesslstore/order/download.rb,
lib/thesslstore/order/new_order.rb,
lib/thesslstore/organisation_info.rb,
lib/thesslstore/technical_contact.rb,
lib/thesslstore/organization_address.rb

Defined Under Namespace

Modules: Order Classes: Address, AdminContact, AuthRequest, Client, Contact, OrganisationInfo, OrganizationAddress, TechnicalContact

Constant Summary collapse

CONFIG_PATH =
File.expand_path("~/.thesslstore")
VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.configObject



7
8
9
# File 'lib/thesslstore.rb', line 7

def self.config
  @config ||= load_config
end

.load_configObject



11
12
13
# File 'lib/thesslstore.rb', line 11

def self.load_config
  File.exists?(Thesslstore::CONFIG_PATH) ? YAML.load_file(Thesslstore::CONFIG_PATH) : {}
end