Class: Cloudfuji::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



11
12
13
# File 'lib/generators/cloudfuji/install_generator.rb', line 11

def copy_initializer
  template "cloudfuji.rb", "config/initializers/cloudfuji.rb"
end

#show_readmeObject

def copy_locale

copy_file "../../../config/locales/en.yml", "config/locales/devise.en.yml"

end



19
20
21
# File 'lib/generators/cloudfuji/install_generator.rb', line 19

def show_readme
  readme "README" if behavior == :invoke
end