Class: AppCommand::MySQLReset
- Inherits:
-
Convoy::ActionCommand::Base
- Object
- Convoy::ActionCommand::Base
- AppCommand::MySQLReset
- Defined in:
- lib/routes/mysql_reset.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/routes/mysql_reset.rb', line 5 def execute begin @opts = @args = arguments @site = Blufin::SiteResolver::validate_site(@args[0]) opts_validate opts_routing rescue => e Blufin::Terminal::print_exception(e) end end |
#opts_routing ⇒ Object
29 30 31 32 33 |
# File 'lib/routes/mysql_reset.rb', line 29 def opts_routing reset_database end |
#opts_validate ⇒ Object
25 26 27 |
# File 'lib/routes/mysql_reset.rb', line 25 def opts_validate end |
#reset_database ⇒ Object
35 36 37 38 39 |
# File 'lib/routes/mysql_reset.rb', line 35 def reset_database App::MySQL::reset_full_mock_data(@site, @opts[:skip_confirm], @opts[:verbose]) end |