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