Class: SshyGuy::Screens::ShortcutScreen

Inherits:
SshyGuy::Screen show all
Defined in:
lib/sshyguy/screens/shortcut_screen.rb

Instance Attribute Summary

Attributes inherited from SshyGuy::Screen

#options, #prompt

Instance Method Summary collapse

Methods inherited from SshyGuy::Screen

#initialize, show

Constructor Details

This class inherits a constructor from SshyGuy::Screen

Instance Method Details

#showObject



6
7
8
9
10
11
12
# File 'lib/sshyguy/screens/shortcut_screen.rb', line 6

def show
  unless find_shortcut
    puts "No shortcut found for '#{options[:shortcut]}'"
    exit
  end
  find_shortcut.spawn
end