Class: Phase::CLI::Keys
Defined Under Namespace
Classes: AuthorizedKeys
Constant Summary collapse
- LOCKFILE_NAME =
"phase.keys.lock"
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Methods included from Util::Console
Constructor Details
This class inherits a constructor from Phase::CLI::Command
Instance Method Details
#run ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/phase/cli/keys.rb', line 25 def run log "backing up existing keys..." .backup! if email = .grant add_key(email) elsif email = .revoke remove_key(email, .delete) else print_keys_list end end |