Class: Brut::CLI::Apps::DB::Rebuild
Instance Attribute Summary
#parent_command
Instance Method Summary
collapse
#execute
#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
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
168
|
# File 'lib/brut/cli/apps/db.rb', line 168
def bootstrap? = false
|
#default_rack_env ⇒ Object
167
|
# File 'lib/brut/cli/apps/db.rb', line 167
def default_rack_env = "development"
|
#description ⇒ Object
166
|
# File 'lib/brut/cli/apps/db.rb', line 166
def description = "Drop, re-create, and run migrations, effecitvely rebuilding the entire database"
|