Module: Oxd

Defined in:
lib/oxd/version.rb,
lib/oxd/config.rb,
lib/oxd/oxd_connector.rb,
lib/oxd/client_oxd_commands.rb,
lib/generators/oxd/config_generator.rb

Overview

Generator for oxd_config.rb config initializer rails generate oxd:config

Defined Under Namespace

Modules: Generators Classes: ClientOxdCommands, Configuration, OxdConnector

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.configObject

Global settings for Oxd


19
20
21
# File 'lib/oxd/config.rb', line 19

def self.config
  @config
end

.configure(&block) ⇒ Object

Configures global settings for Oxd

Oxd.configure do |config|
  config.oxd_host_ip = '127.0.0.1'
end

11
12
13
14
15
16
# File 'lib/oxd/config.rb', line 11

def self.configure(&block)
  @config ||= Oxd::Configuration.new
  if block_given?
    yield(@config)
  end
end