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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#debug_steps_timesObject

Returns the value of attribute debug_steps_times.



48
49
50
# File 'lib/epuber/command.rb', line 48

def debug_steps_times
  @debug_steps_times
end

Class Method Details

.run(argv = []) ⇒ Object



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/epuber/command.rb', line 27

def self.run(argv = [])
  UI.current_command = self
  super
  UI.current_command = nil
rescue Interrupt
  UI.error('[!] Cancelled')
rescue StandardError => e
  UI.error!(e)

  UI.current_command = nil
end

Instance Method Details

#runObject



44
45
46
# File 'lib/epuber/command.rb', line 44

def run
  UI.current_command = self
end

#validate!Object



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

def validate!
  super
  UI.current_command = self
end