class Application::Remote
Public Class Methods
new(instance, stage)
click to toggle source
Calls superclass method
Application::Base::new
# File lib/capistrano-db-pull/application.rb, line 31 def initialize(instance, stage) super(instance) config = @capistrano.capture( "cat #{@capstrano.current_path}/config/database.yml") @config = YAML.load(ERB.new(config).result)[stage.to_s] end