Class: Brut::CLI::Apps::BuildAssets::All

Inherits:
Command
  • Object
show all
Defined in:
lib/brut/cli/apps/build_assets.rb

Instance Method Summary collapse

Methods inherited from Command

#after_bootstrap, args, #args, #before_execute, command_name, default_env, #delegate_to_commands, description, detailed_description, env_var, #err, #global_options, #handle_bootstrap_exception, #initialize, name_matches?, option_parser, #options, opts, #out, requires_project_env, requires_project_env?, #system!

Methods included from Framework::Errors

#abstract_method!, #bug!

Methods included from I18n::ForCLI

#capture, #html_escape, #safe

Methods included from I18n::BaseMethods

#l, #t, #t_direct, #this_field_value

Methods included from ExecutionResults

#abort_execution, #as_execution_result, #cli_usage_error, #continue_execution, #show_cli_usage, #stop_execution

Constructor Details

This class inherits a constructor from Brut::CLI::Command

Instance Method Details

#executeObject



16
17
18
19
20
21
22
23
# File 'lib/brut/cli/apps/build_assets.rb', line 16

def execute
  if global_options.clean?(default: global_options.env != "production")
     = Brut.container.
    out.puts "Removing #{}"
    FileUtils.rm_f()
  end
  delegate_to_commands(Images, JS, CSS)
end