Sha256: 068d5e5fe6b43d528fe45b3b3fa4215006cbbcc1ad548694a39b9c2a401fd1a5

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

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

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

      private

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lotusrb-0.6.1 lib/lotus/cli_sub_commands/assets.rb
lotusrb-0.6.0 lib/lotus/cli_sub_commands/assets.rb