Skip to content

Commit

Permalink
Remove deprecated run: command
Browse files Browse the repository at this point in the history
Closes #110
  • Loading branch information
kmayer committed Nov 13, 2012
1 parent 9909661 commit d8577eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions lib/heroku_san/stage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions spec/heroku_san/stage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d8577eb

Please sign in to comment.