Module: Vedeu::Config

Defined in:
lib/vedeu/configuration/configuration.rb,
lib/vedeu/configuration/api.rb,
lib/vedeu/configuration/cli.rb

Overview

Namespace for the API configuration and CLI configuration classes.

Defined Under Namespace

Classes: API, CLI

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log(from, options) ⇒ Hash

Custom log for configuration.

Parameters:

  • from (String)

    Which configuration set the options (‘API’ or ‘CLI’).

  • options (Hash)

    The configuration options set.

Returns:

  • (Hash)

    The options param.



15
16
17
18
19
20
# File 'lib/vedeu/configuration/configuration.rb', line 15

def log(from, options)
  options.each do |option, value|
    Vedeu.log(type:    :config,
              message: "#{from} #{option}: #{value}")
  end
end

Instance Method Details

#log(from, options) ⇒ Hash (private)

Custom log for configuration.

Parameters:

  • from (String)

    Which configuration set the options (‘API’ or ‘CLI’).

  • options (Hash)

    The configuration options set.

Returns:

  • (Hash)

    The options param.



15
16
17
18
19
20
# File 'lib/vedeu/configuration/configuration.rb', line 15

def log(from, options)
  options.each do |option, value|
    Vedeu.log(type:    :config,
              message: "#{from} #{option}: #{value}")
  end
end