Class: Jax::Generators::LightSource::LightSourceGenerator
Class Method Summary
collapse
Instance Method Summary
collapse
#check_plugin_destination
Methods inherited from Command
inherited
Methods included from Usage
extended, included
Class Method Details
.source_root ⇒ Object
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
#light ⇒ Object
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
|