Class: Epuber::Command

Inherits:
CLAide::Command
  • Object
show all
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

Direct Known Subclasses

Build, FromFile, Init, Server

Defined Under Namespace

Classes: Build, Compile, FromFile, Init, Server

Class Method Summary collapse

Instance Method Summary collapse

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

#runObject



41
# File 'lib/epuber/command.rb', line 41

def run; end