class GetSchwifty::Generators::InstallGenerator
:nodoc
Public Instance Methods
autoload_cables_path()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 36 def autoload_cables_path application %(config.autoload_paths << config.root.join("app", "cables")) end
copy_base_cable()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 32 def copy_base_cable template "cables/base_cable.rb", "app/cables/base_cable.rb" end
copy_channel()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 19 def copy_channel template "channels/get_schwifty_channel.rb", "app/channels/get_schwifty_channel.rb" end
copy_controller()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 15 def copy_controller template "controllers/get_schwifty_controller.rb", "app/controllers/get_schwifty_controller.rb" end
copy_get_schwifty_channel_js()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 40 def copy_get_schwifty_channel_js template "assets/javascripts/get_schwifty_channel.js", "app/assets/javascripts/channels/get_schwifty_channel.js" end
copy_initializer()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 11 def copy_initializer template "get_schwifty.rb", "config/initializers/get_schwifty.rb" end
copy_job()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 23 def copy_job template "jobs/get_schwifty_runner_job.rb", "app/jobs/get_schwifty_runner_job.rb" end
create_cables_directories()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 27 def create_cables_directories empty_directory "app/cables" empty_directory "app/views/cables" end
print_readme()
click to toggle source
# File lib/generators/get_schwifty/install_generator.rb, line 44 def print_readme readme "INSTALL" end