Sha256: bf491f33f38e74c389d60213772af926a6c722c0bc0dfdddf1915a07249b916d

Contents?: true

Size: 820 Bytes

Versions: 17

Compression:

Stored size: 820 Bytes

Contents

require 'rails'

module Remotipart
  module Generators
    class InstallGenerator < ::Rails::Generators::Base

      desc "This generator installs IframeTransport.js #{Remotipart::Rails::IFRAMETRANSPORT_VERSION} and Remotipart #{Remotipart::Rails::VERSION}"
      source_root File.expand_path('../../../../../vendor/assets/javascripts', __FILE__)

      def install_iframe_transport
        say_status "copying", "IframeTransport.js #{Remotipart::Rails::IFRAMETRANSPORT_VERSION}", :green
        copy_file "jquery.iframe-transport.js", "public/javascripts/jquery.iframe-transport.js"
      end

      def install_remotipart
        say_status "copying", "Remotipart.js #{Remotipart::Rails::VERSION}", :green
        copy_file 'jquery.remotipart.js', 'public/javascripts/jquery.remotipart.js'
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
remotipart-1.4.4 lib/generators/remotipart/install/install_generator.rb
remotipart-1.4.3 lib/generators/remotipart/install/install_generator.rb
remotipart-1.4.2 lib/generators/remotipart/install/install_generator.rb
remotipart-1.4.0 lib/generators/remotipart/install/install_generator.rb
remotipart-1.3.1 lib/generators/remotipart/install/install_generator.rb
remotipart-1.3.0 lib/generators/remotipart/install/install_generator.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/remotipart-1.2.1/lib/generators/remotipart/install/install_generator.rb
remotipart-1.2.1 lib/generators/remotipart/install/install_generator.rb
remotipart-1.2.0 lib/generators/remotipart/install/install_generator.rb
remotipart-1.1.1 lib/generators/remotipart/install/install_generator.rb
remotipart-1.1.0 lib/generators/remotipart/install/install_generator.rb
remotipart-1.0.5 lib/generators/remotipart/install/install_generator.rb
remotipart-1.0.4 lib/generators/remotipart/install/install_generator.rb
remotipart-1.0.3 lib/generators/remotipart/install/install_generator.rb
remotipart-1.0.2 lib/generators/remotipart/install/install_generator.rb
remotipart-1.0.1 lib/generators/remotipart/install/install_generator.rb
remotipart-1.0 lib/generators/remotipart/install/install_generator.rb