Class: AnycableGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/anycable/anycable_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#add_anycable_configObject



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_fileObject



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