Class: Jax::Generators::LightSource::LightSourceGenerator

Inherits:
PluggableCommand show all
Defined in:
lib/jax/generators/light_source/light_source_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PluggableCommand

#check_plugin_destination

Methods inherited from Command

inherited

Methods included from Usage

extended, included

Class Method Details

.source_rootObject



11
12
13
# File 'lib/jax/generators/light_source/light_source_generator.rb', line 11

def self.source_root
  File.expand_path("templates", File.dirname(__FILE__))
end

Instance Method Details

#lightObject



15
16
17
# File 'lib/jax/generators/light_source/light_source_generator.rb', line 15

def light
  template 'light.yml.tt', File.join("app/resources/light_sources", "#{file_name}.yml")
end