Class: Jax::Generators::Command

Inherits:
Thor::Group
  • Object
show all
Includes:
Usage, Thor::Actions
Defined in:
lib/jax/generators/commands.rb

Direct Known Subclasses

PluggableCommand, Plugin::PluginGenerator

Class Method Summary collapse

Methods included from Usage

extended, included

Class Method Details

.inherited(base) ⇒ Object



60
61
62
63
64
65
66
67
# File 'lib/jax/generators/commands.rb', line 60

def self.inherited(base)
  base.base_path = File.dirname(caller.first.gsub(/:.*$/, ''))
  base.instance_eval do
    def self.source_root
      File.join(base_path, "templates")
    end
  end
end