Permalink
Browse files

exit with error when running deprecated service commands

  • Loading branch information...
1 parent 7109ec2 commit 93fed190df158d4cf393639cb3977921972f5b5a @pedro pedro committed Dec 16, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/heroku/commands/service.rb
@@ -1,23 +1,23 @@
module Heroku::Command
class Service < Base
def start
- display "heroku service:start is defunct. Use heroku workers +1 instead."
+ error "heroku service:start is defunct. Use heroku workers +1 instead."
end
def up
- display "heroku service:up is defunct. Use heroku workers +1 instead."
+ error "heroku service:up is defunct. Use heroku workers +1 instead."
end
def down
- display "heroku service:start is defunct. Use heroku workers -1 instead."
+ error "heroku service:down is defunct. Use heroku workers -1 instead."
end
def bounce
- display "heroku service:start is defunct. Use heroku restart instead."
+ error "heroku service:bounce is defunct. Use heroku restart instead."
end
def status
- display "heroku service:status is defunct. Use heroku ps instead."
+ error "heroku service:status is defunct. Use heroku ps instead."
end
end
end

0 comments on commit 93fed19

Please sign in to comment.