Sha256: 8dedc02bdabfdbf66651513e84095103053f37c0dc8d44422d2d446c2fe9d5f6
Contents?: true
Size: 553 Bytes
Versions: 10
Compression:
Stored size: 553 Bytes
Contents
class SetGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) argument :mod#, :required => true, :type => :array, :desc => "The names of the attachment(s) to add.", #:banner => "attachment_one attachment_two attachment_three ..." argument :set_pattern argument :anchor def create_files template 'set_template.erb', "mods/#{mod}/sets/#{set_pattern}/#{anchor}.rb" template 'set_spec_template.erb', "spec/mods/#{mod}/sets/#{set_pattern}/#{anchor}_spec.rb" end end
Version data entries
10 entries across 10 versions & 1 rubygems