Class: Ptero::CLI
- Inherits:
-
Thor
- Object
- Thor
- Ptero::CLI
- Defined in:
- lib/ptero/cli.rb
Overview
The superclass of all Ptero command-line interfaces
Direct Known Subclasses
Defined Under Namespace
Classes: Root
Class Method Summary collapse
-
.const_missing(const_name) ⇒ Object
autoload and return any cli that is missing.
Class Method Details
.const_missing(const_name) ⇒ Object
autoload and return any cli that is missing
25 26 27 28 29 30 31 32 33 |
# File 'lib/ptero/cli.rb', line 25 def const_missing(const_name) # Load the cli require "#{__dir__}/cli/#{const_name.downcase}.rb" return const_get const_name if const_defined? const_name super # If we couldn't load it, throw an error rescue LoadError super end |