Module: Daddy

Defined in:
lib/daddy.rb,
lib/daddy/git.rb,
lib/daddy/ocr.rb,
lib/daddy/model.rb,
lib/daddy/version.rb,
lib/daddy/uploader.rb,
lib/daddy/http_client.rb,
lib/daddy/rails/engine.rb,
lib/daddy/utils/config.rb,
lib/daddy/itamae/config.rb,
lib/daddy/rails/railtie.rb,
lib/daddy/utils/sql_utils.rb,
lib/daddy/utils/string_utils.rb,
lib/daddy/cucumber/helpers/html.rb,
lib/daddy/cucumber/helpers/puts.rb,
lib/daddy/models/crud_extension.rb,
lib/daddy/cucumber/helpers/pause.rb,
lib/daddy/cucumber/helpers/table.rb,
lib/daddy/models/query_extension.rb,
lib/daddy/coverage/rcov_formatter.rb,
lib/daddy/cucumber/helpers/assert.rb

Defined Under Namespace

Modules: Coverage, Cucumber, Models, Rails, Uploader, Utils Classes: Git, HttpClient, Model, Ocr

Constant Summary collapse

VERSION =
[
  VERSION_MAJOR = '0',
  VERSION_MINOR = '9',
  VERSION_REVISION = '2'
].join('.')

Class Method Summary collapse

Class Method Details

.configObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/daddy.rb', line 7

def self.config
  if @_config.nil?
    daddy_yml = File.join('config', 'daddy.yml')
    if File.exist?(daddy_yml)
      @_config = Daddy::Utils::Config.new(daddy_yml)
    else
      @_config = Daddy::Utils::Config.new
    end
  end

  @_config
end