Sha256: 59089e807c168404550e7ac84586608b5aa3c38be389e457506ac38e874eb762

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

#!/usr/bin/env rake
module Clipster
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "Creates a Clipster initializer and copies it to your application"

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

      def copy_migrations
        rake("clipster:install:migrations")
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clipster-0.4.1 lib/generators/clipster/install_generator.rb