Class: Brut::CLI::Apps::DB::Rebuild

Inherits:
Commands::CompoundCommand show all
Defined in:
lib/brut/cli/apps/db.rb

Instance Attribute Summary

Attributes inherited from Commands::BaseCommand

#parent_command

Instance Method Summary collapse

Methods inherited from Commands::CompoundCommand

#execute

Methods inherited from Commands::BaseCommand

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

Constructor Details

#initializeRebuild

Returns a new instance of Rebuild.



169
170
171
172
173
174
175
# File 'lib/brut/cli/apps/db.rb', line 169

def initialize
  super([
    Drop.new,
    Create.new,
    Migrate.new,
  ])
end

Instance Method Details

#bootstrap?Boolean

Returns:

  • (Boolean)


168
# File 'lib/brut/cli/apps/db.rb', line 168

def bootstrap? = false

#default_rack_envObject



167
# File 'lib/brut/cli/apps/db.rb', line 167

def default_rack_env = "development"

#descriptionObject



166
# File 'lib/brut/cli/apps/db.rb', line 166

def description = "Drop, re-create, and run migrations, effecitvely rebuilding the entire database"