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

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

Direct Known Subclasses

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, #delegate_to_command, #description, #detailed_description, #env, #env_vars, #execute, #name, #options, #puts, #run, #stdin, #system!, #theme

Instance Method Details

#bootstrap?Boolean

Returns:

  • (Boolean)


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

def bootstrap? = false

#default_rack_envObject



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

def default_rack_env = "development"

#friendly_name(file) ⇒ Object



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

def friendly_name(file)
  Pathname(file).relative_path_from(Brut.container.project_root).to_s
end

#optsObject



12
13
14
15
16
17
# File 'lib/brut/cli/apps/build_assets.rb', line 12

def opts = [
  [
    "--[no-]clean",
    "If set, any old files from previous runs are deleted. Defaults to false in production, true everywhere else.",
  ],
]