Sha256: e9fa66727cb5c0aa8ce50e3b595311c08b481a34b25bb3b9a0d0307f6d654aad

Contents?: true

Size: 826 Bytes

Versions: 5

Compression:

Stored size: 826 Bytes

Contents

module Voltron
  module Flash
    module Generators
      module Install
        class AssetsGenerator < Rails::Generators::Base

          source_root File.expand_path("../../../../templates", __FILE__)

          desc "Install Voltron Flash assets"

          def copy_javascripts_assets
            copy_file "app/assets/javascripts/voltron-flash.js", Rails.root.join("app", "assets", "javascripts", "voltron-flash.js")
          end

          def copy_stylesheets_assets
            copy_file "app/assets/stylesheets/voltron-flash.scss", Rails.root.join("app", "assets", "stylesheets", "voltron-flash.scss")
          end

          def copy_views
            copy_file "app/views/voltron/flash.html.erb", Rails.root.join("app", "views", "voltron", "flash.html.erb")
          end

        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voltron-flash-0.1.3 lib/generators/voltron/flash/install/assets_generator.rb
voltron-flash-0.1.1 lib/generators/voltron/flash/install/assets_generator.rb
voltron-flash-0.1.4 lib/generators/voltron/flash/install/assets_generator.rb
voltron-flash-0.1.2 lib/generators/voltron/flash/install/assets_generator.rb
voltron-flash-0.1.5 lib/generators/voltron/flash/install/assets_generator.rb