From dec6315ca93002cdf53ba23add37b50310494679 Mon Sep 17 00:00:00 2001 From: John Wang Date: Thu, 19 May 2011 11:28:15 -1000 Subject: [PATCH] switch the list method to index method for new heroku cli --- lib/heroku_herocutter.rb | 4 ++-- spec/lib/heroku_herocutter_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/heroku_herocutter.rb b/lib/heroku_herocutter.rb index 1add21a..acad7f1 100644 --- a/lib/heroku_herocutter.rb +++ b/lib/heroku_herocutter.rb @@ -93,8 +93,8 @@ def list_with_herocutter end end - alias_method :list_without_herocutter, :list - alias_method :list, :list_with_herocutter + alias_method :list_without_herocutter, :index + alias_method :index, :list_with_herocutter private # determine if they passed in a plugin name or uri diff --git a/spec/lib/heroku_herocutter_spec.rb b/spec/lib/heroku_herocutter_spec.rb index 1e27393..0278fd8 100644 --- a/spec/lib/heroku_herocutter_spec.rb +++ b/spec/lib/heroku_herocutter_spec.rb @@ -213,7 +213,7 @@ def push_command(uri = nil, name = nil) describe "on plugin list" do def list_command - Heroku::Command.run("plugins:list", [@option]) + Heroku::Command.run("plugins", [@option]) end describe "when listing remote plugins" do