Method: Milkode::Cdstk#remove_all
- Defined in:
- lib/milkode/cdstk/cdstk.rb
#remove_all ⇒ Object
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/milkode/cdstk/cdstk.rb', line 329 def remove_all print_result do list([], {:verbose => true}) if yes_or_no("Remove #{@yaml.contents.size} contents? (yes/no)") db_open # documents @documents.remove_all do |record| alert_info("rm_record", record.path) @file_count += 1 end # packages @grndb.packages.remove_all # yaml @package_count += @yaml.contents.size @yaml.remove_all @yaml.save else return end end end |