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

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

Defined Under Namespace

Classes: All, 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, #commands, #default_command, #default_rack_env, #env, #env_vars, #execute, #options, #puts, #run, #stderr, #stdin, #stdout, #system!

Instance Method Details

#bootstrap?Boolean

Returns:

  • (Boolean)


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

def bootstrap? = default_command.bootstrap?

#default_command_classObject



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

def default_command_class = All

#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



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

def name = "build-assets"

#optsObject



9
10
11
12
13
14
# File 'lib/brut/cli/apps/build_assets.rb', line 9

def opts = [
  [
    "--[no-]clean",
    "If set, any old files from previous runs are deleted. If omitted, is false in production and true otherwise",
  ],
]