Class: Sshify::CLI
- Inherits:
-
Thor
- Object
- Thor
- Sshify::CLI
- Defined in:
- lib/sshify/cli.rb
Overview
Handle the application command line parsing and the dispatch to various command objects
Constant Summary collapse
- Error =
Error raised by this runner
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/sshify/cli.rb', line 37 def config(*) if [:help] invoke :help, ['config'] else require_relative 'commands/config' Sshify::Commands::Config.new().execute end end |
#connect ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/sshify/cli.rb', line 24 def connect(*) if [:help] invoke :help, ['connect'] else require_relative 'commands/connect' Sshify::Commands::Connect.new().execute end end |
#version ⇒ Object
15 16 17 18 |
# File 'lib/sshify/cli.rb', line 15 def version require_relative 'version' puts "v#{Sshify::VERSION}" end |