Sha256: 6e8e084bf81c971276e8bbc36ec583bdb52ebc4e5dc062899c49711dc73d9a99

Contents?: true

Size: 614 Bytes

Versions: 4

Compression:

Stored size: 614 Bytes

Contents

module Hanami
  class CliSubCommands
    # A set of subcommands related to assets
    #
    # It is run with:
    #
    #   `bundle exec hanami assets`
    #
    # @since 0.6.0
    # @api private
    class Assets < Thor
      namespace :assets

      desc 'precompile', 'precompile assets for deployment'
      def precompile
        require 'hanami/commands/assets/precompile'
        Hanami::Commands::Assets::Precompile.new(options, environment).start
      end

      private

      # @since 0.6.0
      # @api private
      def environment
        Hanami::Environment.new(options)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hanami-0.7.3 lib/hanami/cli_sub_commands/assets.rb
hanami-0.7.2 lib/hanami/cli_sub_commands/assets.rb
hanami-0.7.1 lib/hanami/cli_sub_commands/assets.rb
hanami-0.7.0 lib/hanami/cli_sub_commands/assets.rb