/usr/lib/ruby/vendor_ruby/generators/remotipart/install/install_generator.rb is in ruby-remotipart 1.2.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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
|