Class: Rounders::Generators::PluginGenerator
- Defined in:
- lib/rounders/generators/plugin/plugin_generator.rb
Instance Method Summary collapse
- #create_directory ⇒ Object
- #gemfile ⇒ Object
- #gemspec ⇒ Object
- #gitignore ⇒ Object
- #license ⇒ Object
- #rakefile ⇒ Object
- #readme ⇒ Object
- #set_destination_root ⇒ Object
- #travis ⇒ Object
Methods inherited from Base
Methods included from Plugins::Pluggable
Instance Method Details
#create_directory ⇒ Object
11 12 13 14 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 11 def create_directory directory('lib') directory('spec') end |
#gemfile ⇒ Object
20 21 22 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 20 def gemfile template 'Gemfile' end |
#gemspec ⇒ Object
28 29 30 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 28 def gemspec template 'rounders-%underscored_name%.gemspec.tt' end |
#gitignore ⇒ Object
32 33 34 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 32 def gitignore template 'gitignore', '.gitignore' end |
#license ⇒ Object
24 25 26 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 24 def license template 'MIT-LICENSE' end |
#rakefile ⇒ Object
40 41 42 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 40 def rakefile template 'Rakefile' end |
#readme ⇒ Object
16 17 18 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 16 def readme template 'README.md' end |
#set_destination_root ⇒ Object
7 8 9 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 7 def set_destination_root self.destination_root = "rounders-#{underscored_name}" end |
#travis ⇒ Object
36 37 38 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 36 def travis template 'travis.yml', '.travis.yml' end |