class Rounders::Generators::PluginGenerator
Public Instance Methods
create_directory()
click to toggle source
# File lib/rounders/generators/plugin/plugin_generator.rb, line 13 def create_directory directory('lib') directory('spec') end
gemfile()
click to toggle source
# File lib/rounders/generators/plugin/plugin_generator.rb, line 22 def gemfile template 'Gemfile' end
gemspec()
click to toggle source
# File lib/rounders/generators/plugin/plugin_generator.rb, line 30 def gemspec template 'rounders-%underscored_name%.gemspec.tt' end
gitignore()
click to toggle source
# File lib/rounders/generators/plugin/plugin_generator.rb, line 34 def gitignore template 'gitignore', '.gitignore' end
license()
click to toggle source
# File lib/rounders/generators/plugin/plugin_generator.rb, line 26 def license template 'MIT-LICENSE' end
rakefile()
click to toggle source
# File lib/rounders/generators/plugin/plugin_generator.rb, line 42 def rakefile template 'Rakefile' end
readme()
click to toggle source
# File lib/rounders/generators/plugin/plugin_generator.rb, line 18 def readme template 'README.md' end
set_destination_root()
click to toggle source
# 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()
click to toggle source
# File lib/rounders/generators/plugin/plugin_generator.rb, line 38 def travis template 'travis.yml', '.travis.yml' end