Sha256: f61087874da7ca5d6cb760c0f4323b3c3271b63bc5b1fe37e48c269541f7d86b

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 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

      def copy_partials
        template "_includes.html.erb", "app/views/clipster/common/_includes.html.erb"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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