Sha256: d4f2c08c40bd16f8df24867e03b60d201c922c43be994ba647ff705c612ebe9e
Contents?: true
Size: 549 Bytes
Versions: 11
Compression:
Stored size: 549 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', "mod/#{mod}/set/#{set_pattern}/#{anchor}.rb" template 'set_spec_template.erb', "spec/mod/#{mod}/set/#{set_pattern}/#{anchor}_spec.rb" end end
Version data entries
11 entries across 11 versions & 1 rubygems