Class: Ucode::Cli::Cache
- Inherits:
-
Thor
- Object
- Thor
- Ucode::Cli::Cache
- Defined in:
- lib/ucode/cli.rb
Overview
─────────────── cache ───────────────
Instance Method Summary collapse
Instance Method Details
#info(version) ⇒ Object
469 470 471 472 473 474 475 476 |
# File 'lib/ucode/cli.rb', line 469 def info(version) result = Commands::CacheCommand.new.info(version) if result.nil? puts "Nothing cached for #{version}" else puts JSON.pretty_generate(result.to_h) end end |
#list ⇒ Object
464 465 466 |
# File 'lib/ucode/cli.rb', line 464 def list Commands::CacheCommand.new.list.each { |v| puts v } end |
#remove(version) ⇒ Object
479 480 481 482 |
# File 'lib/ucode/cli.rb', line 479 def remove(version) ok = Commands::CacheCommand.new.remove(version) puts(ok ? "Removed #{version}" : "#{version} not in cache") end |