Class: Brut::CLI::Apps::Scaffold::BaseCommand

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

Direct Known Subclasses

Action, Component, CustomElementTest, DbModel, E2ETest, Page, Test

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)


12
# File 'lib/brut/cli/apps/scaffold.rb', line 12

def bootstrap? = false

#default_rack_envObject



13
# File 'lib/brut/cli/apps/scaffold.rb', line 13

def default_rack_env = "development"

#optsObject



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

def opts = [
  [ "--overwrite", "If set, any files that exists already will be overwritten by new scaffolds" ],
  [ "--dry-run", "If set, no files are changed. You will see output of what would happen without this flag"],
]