Class: Taggata::Cli::RemoveCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Taggata::Cli::RemoveCommand
- Defined in:
- lib/taggata/cli/remove.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/taggata/cli/remove.rb', line 7 def execute parser = ::Taggata::Parser::Query.new @db results = parser.parse query @db.transaction do results.each(&:destroy) end end |