Class: Hotdog::Commands::Destroy
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Hotdog::Commands::Destroy
- Defined in:
- lib/hotdog/commands/destroy.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
#application, #formatter, #logger, #options, #tags
Instance Method Summary collapse
Methods inherited from BaseCommand
Constructor Details
This class inherits a constructor from Hotdog::Commands::BaseCommand
Instance Method Details
#run(args = []) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/hotdog/commands/destroy.rb', line 6 def run(args=[]) execute(" DROP TABLE IF EXISTS hosts;\n EOS\n execute(<<-EOS)\n DROP TABLE IF EXISTS tags;\n EOS\n execute(<<-EOS)\n DROP TABLE IF EXISTS hosts_tags;\n EOS\nend\n") |