Class: Museo::CLI
- Inherits:
-
Thor
- Object
- Thor
- Museo::CLI
- Defined in:
- lib/museo/cli.rb
Instance Method Summary collapse
Instance Method Details
#clear(matcher = nil) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/museo/cli.rb', line 18 def clear(matcher = nil) list(matcher) puts "Removing snapshots" Museo.clear!(matcher) end |
#list(matcher = nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/museo/cli.rb', line 6 def list(matcher = nil) directory = find_directory(matcher) if File.directory?(directory) puts "Directory: #{directory}\n\n" list_files(directory) else puts "No directory found: #{directory}" end end |