Sha256: fbb145fdbc6b5d97df2c9fac7e83b5d2d5df802024b87e7bed32800ed6153ddd

Contents?: true

Size: 341 Bytes

Versions: 7

Compression:

Stored size: 341 Bytes

Contents

module Mokio
  class PositionsGenerator < Rails::Generators::Base #:nodoc:
    argument :names, :type => :array

    desc "Creates module positions"
    def create_positions
      names.each do |name|
        Mokio::ModulePosition.create(:name => name)
        puts "Successfully created #{name.green} position."
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mokio-2.0.8 lib/generators/mokio/positions_generator.rb
mokio-0.0.15 lib/generators/mokio/positions_generator.rb
mokio-0.0.14 lib/generators/mokio/positions_generator.rb
mokio-0.0.13 lib/generators/mokio/positions_generator.rb
mokio-0.0.12 lib/generators/mokio/positions_generator.rb
mokio-0.0.11 lib/generators/mokio/positions_generator.rb
mokio-0.0.10 lib/generators/mokio/positions_generator.rb