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

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

Defined Under Namespace

Classes: Action, Component, CustomElementTest, DbModel, E2ETest, Form, Page, RoutesEditor, Test

Instance Attribute Summary

Attributes inherited from Commands::BaseCommand

#parent_command

Instance Method Summary collapse

Methods inherited from Commands::BaseCommand

#accepts, #args_description, #argv, #bootstrap?, #commands, #default_command, #default_command_class, #env, #env_vars, #execute, #name, #options, #puts, #run, #stderr, #stdin, #stdout, #system!

Instance Method Details

#default_rack_envObject



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

def default_rack_env = "development"

#descriptionObject



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

def description = "Create scaffolds of various files to help develop more quckly"

#optsObject



6
7
8
9
# File 'lib/brut/cli/apps/scaffold.rb', line 6

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"],
]