class RailsPushAndMigrate::Dokku

Public Instance Methods

dokku_path() click to toggle source
# File lib/rails-push-and-migrate/dokku.rb, line 5
def dokku_path
  File.expand_path("../../../bin/dokku_client.sh", __FILE__)
end
migrate_cmd() click to toggle source
# File lib/rails-push-and-migrate/dokku.rb, line 9
def migrate_cmd
  cmds = [
    "git remote add dokku #{remote}",
    "#{dokku_path} run rake db:migrate"
  ].join(" && ")
end