Sha256: 5f74fbbe48c2ae824df5b2027005a1794bf05bc369ee5aed26cbf4ec24e45e6d
Contents?: true
Size: 490 Bytes
Versions: 2
Compression:
Stored size: 490 Bytes
Contents
module SeedGimmick module Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path(File.join(File.dirname(__FILE__), "templates")) desc "Create seed_dir of SeedGimmick." def create_seed_dir create_file File.join("db", "seed_gimmick", ".keep") end desc "Create config file of SeedGimmick." def create_config_file template "seed_gimmick.yml", "config/seed_gimmick.yml" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
seed_gimmick-0.0.3 | lib/generators/seed_gimmick/install_generator.rb |
seed_gimmick-0.0.2 | lib/generators/seed_gimmick/install_generator.rb |