lib/spline/commands/command.rb in spline-0.0.15 vs lib/spline/commands/command.rb in spline-0.0.16

- old
+ new

@@ -3,23 +3,29 @@ module Spline class Command < Thor::Group include Thor::Actions + # root of project, from where we reference the templates def self.source_root File.dirname(__FILE__) + "/.." end + # name refers to the class name with module. Spline::Command in this case + def self.command_name + name.downcase[/\w+::(\w+)command/, 1] + end + def self.alias - name.downcase + command_name end def self.usage_tip - name.downcase + command_name end def self.description - "#{name.downcase} description" + "#{command_name} description" end end end \ No newline at end of file