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
13 14 15 16 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 13 def create_directory directory('lib') directory('spec') end |
#gemfile ⇒ Object
22 23 24 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 22 def gemfile template 'Gemfile' end |
#gemspec ⇒ Object
30 31 32 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 30 def gemspec template 'rounders-%underscored_name%.gemspec.tt' end |
#gitignore ⇒ Object
34 35 36 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 34 def gitignore template 'gitignore', '.gitignore' end |
#license ⇒ Object
26 27 28 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 26 def license template 'MIT-LICENSE' end |
#rakefile ⇒ Object
42 43 44 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 42 def rakefile template 'Rakefile' end |
#readme ⇒ Object
18 19 20 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 18 def readme template 'README.md' end |
#set_destination_root ⇒ Object
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 |
#travis ⇒ Object
38 39 40 |
# File 'lib/rounders/generators/plugin/plugin_generator.rb', line 38 def travis template 'travis.yml', '.travis.yml' end |