Class: Gemstash::CLI::Authorize
- Defined in:
- lib/gemstash/cli/authorize.rb
Overview
This implements the command line authorize task to authorize users:
$ gemstash authorize authorized-key
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gemstash::CLI::Base
Instance Method Details
#run ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/gemstash/cli/authorize.rb', line 12 def run prepare setup_logging # Catch invalid option combinations raise Gemstash::CLI::Error.new(@cli, "--remove and --list cannot both be used") if @cli.[:remove] && @cli.[:list] if @cli.[:remove] elsif @cli.[:list] else end end |