Class: Gemstash::CLI::Authorize

Inherits:
Base
  • Object
show all
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

#initialize

Constructor Details

This class inherits a constructor from Gemstash::CLI::Base

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/gemstash/cli/authorize.rb', line 9

def run
  prepare
  setup_logging

  if @cli.options[:remove]
    remove_authorization
  else
    save_authorization
  end
end