require 'generators/transponder' require 'generators/transponder/resource_helpers' module Transponder module Generators class InstallGenerator < Base include Transponder::Generators::ResourceHelpers def create_services directory 'services', 'app/assets/javascripts/services' end def create_presenters directory 'presenters', 'app/assets/javascripts/presenters' end def create_helpers directory 'helpers', 'app/assets/javascripts/helpers' end def create_initializers directory 'initializers', 'app/assets/javascripts/initializers' end def add_setup template 'initializers/setup.coffee', 'app/assets/javascripts/initializers/setup.coffee' end def add_manifest template 'initializers/manifest.coffee', "app/assets/javascripts/initializers/manifest.coffee" end end end end