Class: SshKeySwitcher::CLI
- Inherits:
-
Thor
- Object
- Thor
- SshKeySwitcher::CLI
- Defined in:
- lib/ssh_key_switcher.rb
Instance Method Summary collapse
Instance Method Details
#current ⇒ Object
34 35 36 |
# File 'lib/ssh_key_switcher.rb', line 34 def current SshKeySwitcher::Options::CurrentAgent.display end |
#ping ⇒ Object
21 22 23 |
# File 'lib/ssh_key_switcher.rb', line 21 def ping SshKeySwitcher::Options::Ping.pong end |
#remove ⇒ Object
40 41 42 43 |
# File 'lib/ssh_key_switcher.rb', line 40 def remove path_open_ssh_key = SshKeySwitcher::Options::Remove.display_select SshKeySwitcher::Options::Remove.del(path_open_ssh_key) end |
#select ⇒ Object
27 28 29 30 |
# File 'lib/ssh_key_switcher.rb', line 27 def select path_open_ssh_key = SshKeySwitcher::Options::Select.display_select SshKeySwitcher::Options::Select.add(path_open_ssh_key) end |
#version ⇒ Object
15 16 17 |
# File 'lib/ssh_key_switcher.rb', line 15 def version TTY::Prompt.new.say("SSHKeySwitcher version #{VERSION}") end |