Sha256: 595942d2c802d2930579b78b6fd0750eb039b595079ac4f9b95fb8a283f3a7ff

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

require 'hanami/assets'
require 'hanami/commands/command'

module Hanami
  module Commands
    # @api private
    class Assets
      # @api private
      class Precompile < Command
        requires 'apps.assets.configurations'

        # @api private
        def start
          Hanami::Assets.precompile(configurations)
        end

        private

        # @api private
        def configurations
          requirements['apps.assets.configurations']
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-1.0.0 lib/hanami/commands/assets/precompile.rb
hanami-1.0.0.rc1 lib/hanami/commands/assets/precompile.rb
hanami-1.0.0.beta3 lib/hanami/commands/assets/precompile.rb