Sha256: c7dc837ca1a29fc6dc695e7373643358106c6ae85de0f3a552c0bbaf4c754230
Contents?: true
Size: 737 Bytes
Versions: 25
Compression:
Stored size: 737 Bytes
Contents
module Rudy module CLI class Disks < Rudy::CLI::CommandBase def disks rdisk = Rudy::Disks.new rdisk.list do |d| puts @@global.verbose > 0 ? d.inspect : d.dump(@@global.format) end end def disks_wash rdisk = Rudy::Disks.new dirt = (rdisk.list || [])#.select { |d| d.available? } if dirt.empty? puts "Nothing to wash in #{rdisk.current_machine_group}" return end puts "The following disk metadata will be deleted:" puts dirt.collect {|d| d.name } execute_check(:medium) dirt.each do |d| d.destroy(:force) end end end end end
Version data entries
25 entries across 25 versions & 2 rubygems