lib/museo/cli.rb in museo-0.2.0 vs lib/museo/cli.rb in museo-0.3.0

- old
+ new

@@ -15,15 +15,12 @@ end desc "clear [MATCHER]", "Clear snapshots that match MATCHER" def clear(matcher = nil) list(matcher) - directory_to_clear = find_directory(matcher) - return unless File.directory?(directory_to_clear) - puts "Removing snapshots" - FileUtils.remove_dir(directory_to_clear) + Museo.clear!(matcher) end private def find_directory(matcher_or_pathname)