Sha256: dafba78ce2c774ecfab9469481f4aaf1a4560cd1e84e55d468e7e81f3abfc261

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

module Satchel
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      desc "Creates a Satchel initializer."

      def copy_initializer
        template "satchel_config.rb", "config/initializers/satchel_config.rb"
      end

      def run_migrations
        rake('satchel:install:migrations')
        rake('db:migrate')
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
satchel-0.0.2 lib/generators/satchel/install_generator.rb