Class: AnycableGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- AnycableGenerator
- Defined in:
- lib/generators/anycable/anycable_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#add_anycable_config ⇒ Object
13 14 15 |
# File 'lib/generators/anycable/anycable_generator.rb', line 13 def add_anycable_config template 'anycable.yml', 'config/anycable.yml' end |
#create_executable_file ⇒ Object
8 9 10 11 |
# File 'lib/generators/anycable/anycable_generator.rb', line 8 def create_executable_file template "script", "bin/anycable" chmod "bin/anycable", 0o755 end |