Sha256: db70160cfc8b359977bd83667032903d21e287859bd83b87bcec2693e43cb5ff

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

#!/usr/bin/env ruby

require 'simple_fixture'
require 'fileutils'

if Dir.exists? SimpleFixture::CONFIG_DIR
  STDERR.puts "#{SimpleFixture::CONFIG_DIR} already exists !"
  return
end

FileUtils.mkdir_p SimpleFixture::FIXTURES_DIR

File.write SimpleFixture::MODELS_FILE, <<-EOF
class Thing < ActiveRecord::Base
end
EOF

File.write SimpleFixture::MIGRATION_FILE, <<-EOF
SimpleFixture.migrate do
  create_table :things do |t|
  end
end
EOF

puts 'simple_fixture structure done !'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_fixture-0.1.1 bin/simple-fixture