Sha256: 0d7de5b8b444070789e9b1b0bd0296fa86e53f979708c1b25bfb982ce993e461

Contents?: true

Size: 603 Bytes

Versions: 7

Compression:

Stored size: 603 Bytes

Contents

module Spree
  module Backend
    module Generators
      class InstallGenerator < Rails::Generators::Base
        desc 'Installs spree rails admin panel'

        def self.source_paths
          [
            File.expand_path('templates', __dir__),
            File.expand_path('../templates', "../#{__FILE__}"),
            File.expand_path('../templates', "../../#{__FILE__}"),
          ]
        end

        def install
          template 'vendor/assets/javascripts/spree/backend/all.js'
          template 'vendor/assets/stylesheets/spree/backend/all.css'
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_backend-4.3.3 lib/generators/spree/backend/install/install_generator.rb
spree_backend-4.3.2 lib/generators/spree/backend/install/install_generator.rb
spree_backend-4.3.1 lib/generators/spree/backend/install/install_generator.rb
spree_backend-4.3.0 lib/generators/spree/backend/install/install_generator.rb
spree_backend-4.3.0.rc3 lib/generators/spree/backend/install/install_generator.rb
spree_backend-4.3.0.rc2 lib/generators/spree/backend/install/install_generator.rb
spree_backend-4.3.0.rc1 lib/generators/spree/backend/install/install_generator.rb