class Spline::Command
Public Class Methods
alias()
click to toggle source
# File lib/spline/commands/command.rb, line 18 def self.alias command_name end
command_name()
click to toggle source
name refers to the class name with module. Spline::Command
in this case
# File lib/spline/commands/command.rb, line 14 def self.command_name name.downcase[/\w+::(\w+)command/, 1] end
description()
click to toggle source
# File lib/spline/commands/command.rb, line 26 def self.description "#{command_name} description" end
source_root()
click to toggle source
root of project, from where we reference the templates
# File lib/spline/commands/command.rb, line 9 def self.source_root File.dirname(__FILE__) + "/.." end
usage()
click to toggle source
# File lib/spline/commands/command.rb, line 22 def self.usage command_name end