lib/travis/cli/deploy.rb in travis-cli-0.0.1 vs lib/travis/cli/deploy.rb in travis-cli-0.0.2
- old
+ new
@@ -65,19 +65,25 @@
def configure?
!!options['configure']
end
def configure
- Config.new(shell, remote, :restart => false).invoke
+ Config.new(shell, remote, {}).invoke
end
def migrate?
!!options['migrate']
end
def migrate
say 'Running migrations'
run "heroku run rake db:migrate -r #{remote}"
+ restart
+ end
+
+ def restart
+ say 'Restarting the app ...'
+ run "heroku restart -r #{remote}"
end
end
end
end