Class: OsCtl::Cli::GarbageCollector

Inherits:
Command
  • Object
show all
Defined in:
lib/osctl/cli/garbage_collector.rb

Instance Method Summary collapse

Methods inherited from Command

#cli_opt, #format_output, #osctld_call, #osctld_fmt, #osctld_open, #osctld_resp, run

Instance Method Details

#pruneObject



5
6
7
8
9
10
11
12
# File 'lib/osctl/cli/garbage_collector.rb', line 5

def prune
  require_args!(optional: %w[pool], strict: false)

  cmd_opts = {}
  cmd_opts[:pools] = args if args.any?

  osctld_fmt(:garbage_collector_prune, cmd_opts:)
end