Sha256: 8939e2e88d161a489884172c52cf99058bf239419f50500d2bf30b3ee469732f

Contents?: true

Size: 539 Bytes

Versions: 16

Compression:

Stored size: 539 Bytes

Contents

require 'rails/generators/base'

class ForgeryGenerator < Rails::Generators::Base
  desc "Create the necessary directories in /lib to customize forgery's behavior"

  def self.source_root
    @_forgery_source_root ||= File.expand_path(File.dirname(__FILE__))
  end

  def create_directories
    puts "Creating directories in /lib/forgery..."

    FileUtils.mkdir_p 'lib/forgery/dictionaries'
    FileUtils.mkdir_p 'lib/forgery/extensions'
    FileUtils.mkdir_p 'lib/forgery/forgeries'
    FileUtils.mkdir_p 'lib/forgery/formats'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
forgery-0.8.1 lib/generators/forgery/forgery_generator.rb
forgery-0.7.0 lib/generators/forgery/forgery_generator.rb
forgery-0.6.0 lib/generators/forgery/forgery_generator.rb
forgery-0.5.0 lib/generators/forgery/forgery_generator.rb
forgery-0.4.4 lib/generators/forgery/forgery_generator.rb
forgery-0.4.3 lib/generators/forgery/forgery_generator.rb
forgery-0.4.2 lib/generators/forgery/forgery_generator.rb
forgery-0.4.1 lib/generators/forgery/forgery_generator.rb
forgery-0.4.0 lib/generators/forgery/forgery_generator.rb
forgery-0.3.12 lib/generators/forgery/forgery_generator.rb
forgery-0.3.11 lib/generators/forgery/forgery_generator.rb
forgery-0.3.10 lib/generators/forgery/forgery_generator.rb
forgery-0.3.9 lib/generators/forgery/forgery_generator.rb
forgery-0.3.8 lib/generators/forgery/forgery_generator.rb
forgery-0.3.7 lib/generators/forgery/forgery_generator.rb
forgery-0.3.6 lib/generators/forgery/forgery_generator.rb