Sha256: 4a5c267f647ee4665da2c00cda28b292e1b399c4af27c296f8f88c935774034d

Contents?: true

Size: 494 Bytes

Versions: 15

Compression:

Stored size: 494 Bytes

Contents

module PrivatePub
  module Generators
    class InstallGenerator < Rails::Generators::Base
      def self.source_root
        File.dirname(__FILE__) + "/templates"
      end

      def copy_files
        template "private_pub.yml", "config/private_pub.yml"
        if ::Rails.version < "3.1"
          copy_file "../../../../app/assets/javascripts/private_pub.js", "public/javascripts/private_pub.js"
        end
        copy_file "private_pub.ru", "private_pub.ru"
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
private_pub_no_sig-0.0.1 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.8 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.7 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.6 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.5 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.4 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.3 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.2 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.1 lib/generators/private_pub/install_generator.rb
peritus_private_pub-1.0.0 lib/generators/private_pub/install_generator.rb
private_pub-1.0.3 lib/generators/private_pub/install_generator.rb
private_pub-1.0.2 lib/generators/private_pub/install_generator.rb
private_pub-1.0.1 lib/generators/private_pub/install_generator.rb
private_pub-1.0.0 lib/generators/private_pub/install_generator.rb
private_pub-0.3.0 lib/generators/private_pub/install_generator.rb