Class: Brut::CLI::Apps::BuildAssets::Images

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



32
33
34
35
36
37
38
# File 'lib/brut/cli/apps/build_assets.rb', line 32

def execute
  src_dir  = Brut.container.images_src_dir
  dest_dir = Brut.container.images_root_dir

  command = "rsync --archive --delete --verbose #{src_dir}/ #{dest_dir}"
  system! command
end