class RailsPushAndMigrate::Heroku
Attributes
app[RW]
Public Class Methods
new(app, branch)
click to toggle source
# File lib/rails-push-and-migrate/heroku.rb, line 6 def initialize(app, branch) @branch = branch @app = app end
Public Instance Methods
migrate_cmd()
click to toggle source
# File lib/rails-push-and-migrate/heroku.rb, line 15 def migrate_cmd "heroku run rake db:migrate -a #{app}" end
remote()
click to toggle source
# File lib/rails-push-and-migrate/heroku.rb, line 11 def remote "https://git.heroku.com/#{app}.git" end