lib/gemfury/command/app.rb in gemfury-0.3.0 vs lib/gemfury/command/app.rb in gemfury-0.3.1

- old
+ new

@@ -60,9 +60,19 @@ client.yank_version(gem_name, version) shell.say "\n*** Yanked #{gem_name}-#{version} ***\n\n" end end + desc "logout", "Remove Gemfury credentials" + def logout + if !has_credentials? + shell.say "You are logged out" + elsif shell.yes? "Are you sure you want to log out? [yN]" + wipe_credentials! + shell.say "You have been logged out" + end + end + private def client options = { :check_gem_version => true } options[:user_api_key] = @user_api_key if @user_api_key Gemfury::Client.new(options) \ No newline at end of file