module DbVcs
Constants
- VERSION
Public Class Methods
config()
click to toggle source
@return [DbVcs::Config]
# File lib/db_vcs.rb, line 21 def config @config ||= DbVcs::Config.new end
configure() { |config| ... }
click to toggle source
# File lib/db_vcs.rb, line 25 def configure yield config end
load_config()
click to toggle source
# 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