Class: Jun::CLI::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/jun/cli/commands/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.command_nameObject



7
8
9
# File 'lib/jun/cli/commands/base.rb', line 7

def self.command_name
  name.sub("Jun::CLI::Commands::", "").underscore.gsub("/", ":")
end

Instance Method Details

#process(*args) ⇒ Object

Raises:

  • (NoMethodError)


11
12
13
# File 'lib/jun/cli/commands/base.rb', line 11

def process(*args)
  raise NoMethodError, "Subclass must implement method."
end