Class: Epuber::Command
- Inherits:
-
CLAide::Command
- Object
- CLAide::Command
- Epuber::Command
- Defined in:
- lib/epuber/command.rb,
lib/epuber/command/init.rb,
lib/epuber/command/build.rb,
lib/epuber/command/server.rb,
lib/epuber/command/compile.rb,
lib/epuber/command/from_file.rb
Defined Under Namespace
Classes: Build, Compile, FromFile, Init, Server
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Command
constructor
A new instance of Command.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Command
Returns a new instance of Command.
35 36 37 38 39 |
# File 'lib/epuber/command.rb', line 35 def initialize(argv) super UI.logger.verbose = verbose? end |
Class Method Details
.run(argv = []) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/epuber/command.rb', line 27 def self.run(argv = []) super rescue Interrupt UI.error('[!] Cancelled') rescue StandardError => e UI.error!(e) end |
Instance Method Details
#run ⇒ Object
41 |
# File 'lib/epuber/command.rb', line 41 def run; end |