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



13
14
15
16
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 13

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

#gemfileObject



22
23
24
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 22

def gemfile
  template 'Gemfile'
end

#gemspecObject



30
31
32
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 30

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

#gitignoreObject



34
35
36
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 34

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

#licenseObject



26
27
28
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 26

def license
  template 'MIT-LICENSE'
end

#rakefileObject



42
43
44
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 42

def rakefile
  template 'Rakefile'
end

#readmeObject



18
19
20
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 18

def readme
  template 'README.md'
end

#set_destination_rootObject



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

def set_destination_root
  n = "rounders-#{underscored_name}"
  p = path.nil? ? n : File.join(path, n)
  self.destination_root = p
end

#travisObject



38
39
40
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 38

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