Class: OsCtl::Cli::Receive
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
#cli_opt, #format_output, #initialize, #osctld_call, #osctld_fmt, #osctld_open, #osctld_resp, #require_args!, run
Methods included from Utils::Humanize
#break_interval, #format_long_duration, #format_percent, #format_short_duration, #humanize_data, #humanize_time_ns, #parse_data
Constructor Details
This class inherits a constructor from OsCtl::Cli::Command
Instance Method Details
#authorized_keys_add ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/osctl/cli/receive.rb', line 9 def require_args!('name') osctld_fmt( :receive_authkey_add, pool: gopts[:pool], name: args[0], public_key: STDIN.readline.strip, from: opts['from'], ctid: opts['ctid'], passphrase: opts['passphrase'], single_use: opts['single-use'], ) end |
#authorized_keys_delete ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/osctl/cli/receive.rb', line 23 def require_args!('name') osctld_fmt( :receive_authkey_delete, pool: gopts[:pool], name: args[0], ) end |
#authorized_keys_list ⇒ Object
5 6 7 |
# File 'lib/osctl/cli/receive.rb', line 5 def osctld_fmt(:receive_authkey_list, pool: gopts[:pool]) end |