Class: Application::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/capistrano-db-pull/application.rb

Instance Attribute Summary

Attributes inherited from Base

#capistrano, #config

Instance Method Summary collapse

Methods inherited from Base

#adapter, #database, #mysql?, #postgresql?, #sqlite3?

Constructor Details

#initialize(instance) ⇒ Local

Returns a new instance of Local.



40
41
42
43
44
# File 'lib/capistrano-db-pull/application.rb', line 40

def initialize(instance)
  super(instance)
  config = File.read('config/database.yml')
  @config = YAML.load(ERB.new(config).result)['development']
end