Sha256: 62a6b6d521602e2f59a0d37df4e15d39676af8bfcce211215eaff2fb3758cae1

Contents?: true

Size: 633 Bytes

Versions: 8

Compression:

Stored size: 633 Bytes

Contents

module OnTheSpot
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)
      desc "This generator installs jEditable and some glue javascript"

      def download_jeditable
        # Downloading latest jEditable
        get "http://www.appelsiini.net/download/jquery.jeditable.mini.js", "public/javascripts/jquery.jeditable.mini.js"
      end

      def copy_glue_javascript
        copy_file "on_the_spot.js", "public/javascripts/on_the_spot.js"
        copy_file "on_the_spot.en.yml", "config/locales/on_the_spot.en.yml"
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
on_the_spot-0.0.12 lib/generators/on_the_spot/install/install_generator.rb
on_the_spot-0.0.11 lib/generators/on_the_spot/install/install_generator.rb
on_the_spot-0.0.10 lib/generators/on_the_spot/install/install_generator.rb
on_the_spot-0.0.9 lib/generators/on_the_spot/install/install_generator.rb
on_the_spot-0.0.8 lib/generators/on_the_spot/install/install_generator.rb
bradleypriest-on_the_spot-0.0.7 lib/generators/on_the_spot/install/install_generator.rb
on_the_spot-0.0.7 lib/generators/on_the_spot/install/install_generator.rb
on_the_spot-0.0.6 lib/generators/on_the_spot/install/install_generator.rb