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

Inherits:
Commands::BaseCommand show all
Defined in:
lib/brut/cli/apps/build_assets.rb

Defined Under Namespace

Classes: All, BaseCommand, Css, Images, Js

Instance Attribute Summary

Attributes inherited from Commands::BaseCommand

#parent_command

Instance Method Summary collapse

Methods inherited from Commands::BaseCommand

#accepts, #args_description, #argv, #delegate_to_command, #detailed_description, #env, #env_vars, #execute, #options, #opts, #puts, #stdin, #system!, #theme

Instance Method Details

#bootstrap?Boolean

Returns:

  • (Boolean)


28
# File 'lib/brut/cli/apps/build_assets.rb', line 28

def bootstrap? = default_command.bootstrap?

#commandsObject



35
36
37
38
39
40
# File 'lib/brut/cli/apps/build_assets.rb', line 35

def commands = [
  All.new,
  Images.new,
  Css.new,
  Js.new,
]

#default_commandObject



25
26
27
# File 'lib/brut/cli/apps/build_assets.rb', line 25

def default_command
  @default_command ||= All.new
end

#default_rack_envObject



29
# File 'lib/brut/cli/apps/build_assets.rb', line 29

def default_rack_env = default_command.default_rack_env

#descriptionObject



7
# File 'lib/brut/cli/apps/build_assets.rb', line 7

def description = "Build and manage code and assets destined for the browser, such as CSS, JS, or images"

#nameObject



23
# File 'lib/brut/cli/apps/build_assets.rb', line 23

def name = "build-assets"

#runObject



31
32
33
# File 'lib/brut/cli/apps/build_assets.rb', line 31

def run
  delegate_to_command(default_command)
end