Sha256: 84b62693aa7532aa24493637343aff4c66e99360f8e238ab61779adf95c0fbaf

Contents?: true

Size: 421 Bytes

Versions: 26

Compression:

Stored size: 421 Bytes

Contents

module Bowline::Generators
  class ModelGenerator < NamedGenerator
    desc <<-DESC
      Generates a new model.
    DESC
    
    def modules
      []
    end
    
    first_argument :name, :required => true, :desc => "model name"
    
    template :model do |template|
      template.source       = "model.rb"
      template.destination  = "app/models/#{file_name}.rb"
    end
  end
  
  add :model, ModelGenerator
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
maccman-bowline-0.1.1 lib/bowline/generators/model.rb
maccman-bowline-0.1.10 lib/bowline/generators/model.rb
maccman-bowline-0.1.2 lib/bowline/generators/model.rb
maccman-bowline-0.1.3 lib/bowline/generators/model.rb
maccman-bowline-0.1.4 lib/bowline/generators/model.rb
maccman-bowline-0.1.6 lib/bowline/generators/model.rb
maccman-bowline-0.1.7 lib/bowline/generators/model.rb
maccman-bowline-0.1.8 lib/bowline/generators/model.rb
maccman-bowline-0.3.0 lib/bowline/generators/model.rb
maccman-bowline-0.3.1 lib/bowline/generators/model.rb
maccman-bowline-0.3.3 lib/bowline/generators/model.rb
maccman-bowline-0.3.5 lib/bowline/generators/model.rb
maccman-bowline-0.3.6 lib/bowline/generators/model.rb
maccman-bowline-0.3.7 lib/bowline/generators/model.rb
maccman-bowline-0.3.9 lib/bowline/generators/model.rb
maccman-bowline-0.4.0 lib/bowline/generators/model.rb
maccman-bowline-0.4.1 lib/bowline/generators/model.rb
maccman-bowline-0.4.3 lib/bowline/generators/model.rb
maccman-bowline-0.4.4 lib/bowline/generators/model.rb
maccman-bowline-0.4.5 lib/bowline/generators/model.rb