Class: Rounders::Generators::PluginGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/rounders/generators/plugin/plugin_generator.rb

Instance Method Summary collapse

Methods inherited from Base

inherited

Methods included from Plugins::Pluggable

included

Instance Method Details

#create_directoryObject



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

def create_directory
  directory('lib')
  directory('spec')
end

#gemfileObject



20
21
22
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 20

def gemfile
  template 'Gemfile'
end

#gemspecObject



28
29
30
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 28

def gemspec
  template 'rounders-%underscored_name%.gemspec.tt'
end

#gitignoreObject



32
33
34
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 32

def gitignore
  template 'gitignore', '.gitignore'
end

#licenseObject



24
25
26
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 24

def license
  template 'MIT-LICENSE'
end

#rakefileObject



40
41
42
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 40

def rakefile
  template 'Rakefile'
end

#readmeObject



16
17
18
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 16

def readme
  template 'README.md'
end

#set_destination_rootObject



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

def set_destination_root
  self.destination_root = "rounders-#{underscored_name}"
end

#travisObject



36
37
38
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 36

def travis
  template 'travis.yml', '.travis.yml'
end