Class: Jax::Generators::PluggableCommand
- Defined in:
- lib/jax/generators/commands.rb
Overview
Generators extending PluggableCommand will produce code in either a Jax application proper, or in a plugin within the app.
Direct Known Subclasses
Controller::ControllerGenerator, LightSource::LightSourceGenerator, Material::MaterialGenerator, Model::ModelGenerator, Shader::ShaderGenerator
Instance Method Summary collapse
Methods inherited from Command
Methods included from Usage
Instance Method Details
#check_plugin_destination ⇒ Object
73 74 75 76 77 78 79 |
# File 'lib/jax/generators/commands.rb', line 73 def check_plugin_destination if ENV['JAX_CWD'] && cwd = File.('.', ENV['JAX_CWD']) if cwd =~ /^#{Regexp::escape File.join(Jax.root, "vendor/plugins/", "")}(.*?)(\/|$)/ self.destination_root = Jax.root.join("vendor", "plugins", $1) end end end |