Class: Rys::PluginBuilder

Inherits:
Rails::PluginBuilder
  • Object
show all
Defined in:
lib/generators/rys/plugin/plugin_generator.rb

Instance Method Summary collapse

Instance Method Details

#configObject


16
17
18
19
20
# File 'lib/generators/rys/plugin/plugin_generator.rb', line 16

def config
  super
  template 'config/locales/en.yml'
  directory 'config/initializers'
end

#gemfileObject


11
12
13
14
# File 'lib/generators/rys/plugin/plugin_generator.rb', line 11

def gemfile
  template 'gems.rb'
  template 'dependencies.rb'
end

#gitignoreObject


29
30
31
# File 'lib/generators/rys/plugin/plugin_generator.rb', line 29

def gitignore
  template '.gitignore'
end

#libObject


22
23
24
25
26
27
# File 'lib/generators/rys/plugin/plugin_generator.rb', line 22

def lib
  template "lib/%name%.rb"
  template "lib/tasks/%name%.rake"
  template "lib/%name%/version.rb"
  template "lib/%name%/engine.rb"
end

#readmeObject


7
8
9
# File 'lib/generators/rys/plugin/plugin_generator.rb', line 7

def readme
  template 'README.md'
end