Module: DbVcs
- Defined in:
- lib/db_vcs.rb,
lib/db_vcs/utils.rb,
lib/db_vcs/config.rb,
lib/db_vcs/manager.rb,
lib/db_vcs/version.rb,
lib/db_vcs/adapters/mongo.rb,
lib/db_vcs/adapters/mysql.rb,
lib/db_vcs/adapter_interface.rb,
lib/db_vcs/adapters/postgres.rb,
lib/db_vcs/config_attributes.rb
Defined Under Namespace
Modules: AdapterInterface, Adapters, ConfigAttributes, Utils
Classes: Config, Error, Manager
Constant Summary
collapse
- VERSION =
"1.1.2"
Class Method Summary
collapse
Class Method Details
21
22
23
|
# File 'lib/db_vcs.rb', line 21
def config
@config ||= DbVcs::Config.new
end
|
25
26
27
|
# File 'lib/db_vcs.rb', line 25
def configure
yield config
end
|
.load_config ⇒ Object
29
30
31
32
33
34
|
# File 'lib/db_vcs.rb', line 29
def load_config
config_path = File.join(Dir.pwd, ".db_vcs.yml")
if File.exists?(config_path)
config.assign_attributes(YAML.load(ERB.new(File.read(config_path)).result))
end
end
|