Module: Cockroach

Extended by:
ActiveSupport::Autoload
Defined in:
lib/generators/cockroach/install_generator.rb,
lib/cockroach.rb,
lib/cockroach/config.rb,
lib/cockroach/source.rb,
lib/cockroach/railtie.rb,
lib/cockroach/version.rb,
lib/cockroach/base/node.rb,
lib/cockroach/source/node.rb,
lib/cockroach/source/model.rb,
lib/cockroach/config/loader.rb,
lib/cockroach/base/load_nodes.rb,
lib/cockroach/base/node_structure.rb,
lib/cockroach/fixtures/factory_girl/node.rb,
lib/cockroach/fixtures/factory_girl/loader.rb,
lib/cockroach/fixtures/factory_girl/profiler.rb

Overview

require ‘rails/generators/generated_attribute’

Defined Under Namespace

Modules: Base, FactoryGirl, Generators, Source Classes: Config, InvalideStructureError, MissingFixtureError, Railtie

Constant Summary collapse

VERSION =
File.read(File.expand_path("./../../VERSION", __FILE__))

Class Method Summary collapse

Class Method Details

.setup(&block) ⇒ Object



30
31
32
33
34
# File 'lib/cockroach.rb', line 30

def setup &block
  block.yield(Cockroach::Config)
  @@config = Cockroach::Config.new (Cockroach::Config.config_path || "config/faker.yml")
  load_fixturer
end