diff --git a/lib/heroku_san/stage.rb b/lib/heroku_san/stage.rb index a06cd7e..eaebc86 100644 --- a/lib/heroku_san/stage.rb +++ b/lib/heroku_san/stage.rb @@ -48,11 +48,7 @@ def addons end def run(command, args = nil) - if stack !~ /aspen|bamboo/ - sh_heroku "run", command, *args - else - sh_heroku "run:#{command}", *args - end + sh_heroku "run", command, *args end def push(sha = nil, force = false) diff --git a/spec/heroku_san/stage_spec.rb b/spec/heroku_san/stage_spec.rb index c304e0d..7ca41c5 100644 --- a/spec/heroku_san/stage_spec.rb +++ b/spec/heroku_san/stage_spec.rb @@ -68,11 +68,6 @@ end describe "#run" do - it "runs commands using the pre-cedar format" do - subject = HerokuSan::Stage.new('production', {"app" => "awesomeapp", "stack" => "aspen"}) - subject.should_receive(:system).with("heroku", "run:rake foo bar bleh", "--app", "awesomeapp") { true } - subject.run 'rake foo bar bleh' - end it "runs commands using the new cedar format" do subject.should_receive(:system).with("heroku", "run", "worker foo bar bleh", "--app", "awesomeapp") { true } subject.run 'worker foo bar bleh'