Sha256: e5ab047a53a324d81b3e4b2440ee477c6d448c5b704db465feb208a14ed97225

Contents?: true

Size: 783 Bytes

Versions: 3

Compression:

Stored size: 783 Bytes

Contents

#!/usr/bin/env ruby                                                                  
$LOAD_PATH << File.expand_path('../../lib', __FILE__)                                
                                                                                     
require 'industrial_girl' 

single = false
force = false
ARGV.each do |arg|
  single = true if arg == 'single'
  force = true if arg == 'force'
end

if (ARGV.first == 'generate' or ARGV.first == 'g')
  Root.new(single, force)
else
  puts 'USAGE:'
  puts 'industrial_girl g'
  puts '  creates all factories within spec/factories'
  puts 'industrial_girl g single'
  puts '  creates single file with all factories in spec/factories.rb'
  puts 'industrial_girl g force'
  puts '  overwrites any factories already generated'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
industrial_girl-0.0.3 bin/industrial_girl
industrial_girl-0.0.2 bin/industrial_girl
industrial_girl-0.0.1 bin/industrial_girl