lib/gemfury/command/app.rb in gemfury-0.6.0 vs lib/gemfury/command/app.rb in gemfury-0.7.0

- old
+ new

@@ -1,8 +1,8 @@ class Gemfury::Command::App < Thor include Gemfury::Command::Authorization - PackageExtensions = %w(gem egg tar.gz tgz) + PackageExtensions = %w(gem egg tar.gz tgz nupkg) # Impersonation class_option :as, :desc => 'Access an account other than your own' class_option :api_token, :desc => 'API token to use for commands' @@ -173,13 +173,15 @@ shell.say "\n*** Yanked #{repo} repository ***\n\n" end end desc "git:rebuild", "Rebuild a Git repository" + method_options %w(revision -r) => :string def git_rebuild(repo) with_checks_and_rescues do + params = { :revision => options[:revision] } shell.say "\n*** Rebuilding #{repo} repository ***\n\n" - shell.say client.git_rebuild(repo) + shell.say client.git_rebuild(repo, :build => params) end end private def client \ No newline at end of file