Class: Application::Local
- Defined in:
- lib/capistrano-db-pull/application.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(instance) ⇒ Local
constructor
A new instance of Local.
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 |