Class: YoudaoFanyi::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/youdao_fanyi/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_initializer_fileObject



8
9
10
# File 'lib/generators/youdao_fanyi/install/install_generator.rb', line 8

def create_initializer_file
  template "youdao_fanyi.rb", 'config/initializers/youdao_fanyi.rb'
end

#create_yml_fileObject



4
5
6
# File 'lib/generators/youdao_fanyi/install/install_generator.rb', line 4

def create_yml_file
  template "youdao_fanyi_api_keys.yml", 'config/youdao_fanyi_api_keys.yml'
end