Module: Goldeneye

Defined in:
lib/goldeneye.rb,
lib/goldeneye/cli.rb,
lib/goldeneye/base.rb,
lib/goldeneye/version.rb,
lib/goldeneye/exceptions.rb,
lib/goldeneye/cli/base_cli.rb,
lib/goldeneye/services/cdp.rb,
lib/goldeneye/drivers/base.rb,
lib/goldeneye/cli/utils_cli.rb,
lib/goldeneye/drivers/savon.rb,
lib/goldeneye/services/disk_safe.rb,
lib/goldeneye/services/storage_disk.rb

Defined Under Namespace

Modules: Drivers Classes: Base, BaseCli, CDP, Cli, DiskSafe, Error, StorageDisk, UtilsCli

Constant Summary

VERSION =
"0.1.0.beta1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.driverObject (readonly)

Returns the value of attribute driver



12
13
14
# File 'lib/goldeneye.rb', line 12

def driver
  @driver
end

.passwordObject

Returns the value of attribute password



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

def password
  @password
end

.urlObject

Returns the value of attribute url



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

def url
  @url
end

.userObject

Returns the value of attribute user



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

def user
  @user
end

Class Method Details

.config(options = {}) ⇒ Object

Configures base data for making requests.

Example:

Goldeneye.config(
  :url        => configuration[:url],
  :user       => configuration[:user],
  :password   => configuration[:password]
)


27
28
29
30
31
# File 'lib/goldeneye.rb', line 27

def config(options = {})
  @url      = options[:url]
  @user     = options[:user]
  @password = options[:password]
end

.logger(output = nil) ⇒ Object

Gets or sets the logger. Log level can be set like this:

Goldeneye.logger.level = :info


37
38
39
40
41
42
43
# File 'lib/goldeneye.rb', line 37

def logger(output = nil)
  if output
    @logger = Logging.logger(output)
  end

  @logger ||= Logging.logger(STDOUT)
end