Class: Gbuild::RootCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/gbuild/root_command.rb

Class Method Summary collapse

Class Method Details

.runObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/gbuild/root_command.rb', line 18

def self.run
  case ARGV.first
  when nil
    super
  when "clean"
    ARGV.shift
    CleanCommand.run
  when "delete"
    ARGV.shift
    DeleteCommand.run
  else
    BuildCommand.run
  end
end