class Transponder::Generators::InstallGenerator
Public Instance Methods
add_boot()
click to toggle source
# File lib/generators/transponder/install/install_generator.rb, line 17 def add_boot template "#{options[:type].downcase}_boot.coffee", base_path('initializers/boot.coffee') end
add_manifest()
click to toggle source
# File lib/generators/transponder/install/install_generator.rb, line 25 def add_manifest template "manifest.coffee", base_path('initializers/manifest.coffee') unless options[:shared] end
add_module_file()
click to toggle source
# File lib/generators/transponder/install/install_generator.rb, line 33 def add_module_file module_file = File.join(javascripts_path, "#{file_name.downcase}.coffee") template "application.coffee", module_file unless options[:shared] end
add_setup()
click to toggle source
# File lib/generators/transponder/install/install_generator.rb, line 21 def add_setup template "#{options[:type].downcase}_setup.coffee", base_path('initializers/setup.coffee') end
base_path(path = nil)
click to toggle source
# File lib/generators/transponder/install/install_generator.rb, line 9 def base_path(path = nil) File.join([javascripts_path, file_name, path].compact) end
create_module()
click to toggle source
# File lib/generators/transponder/install/install_generator.rb, line 13 def create_module directory "#{options[:type].downcase}", base_path end