Sha256: 64a9bded3e8971efaa77a65e3e12c48d102637dc0055301df0aa8cfc95a17fed
Contents?: true
Size: 557 Bytes
Versions: 5
Compression:
Stored size: 557 Bytes
Contents
require 'thor/group' 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 command_name end def self.usage command_name end def self.description "#{command_name} description" end end end
Version data entries
5 entries across 5 versions & 1 rubygems