Sha256: b9ff085d2d56e9fffbce75382ff1b5889c58ad08e0d004da7c4b2c345bd7c7da

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

module Pione
  module Command
    # PioneClean is a command for clearing temporary files of PIONE system.
    class PioneClean < BasicCommand
      define_info do
        set_name "pione-clean"
        set_banner "Clean working directories and file cache directories."
      end

      start do
        FileUtils.remove_entry_secure(Global.working_directory_root)
        FileUtils.remove_entry_secure(Global.file_cache_directory_root)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pione-0.2.0 lib/pione/command/pione-clean.rb
pione-0.1.4 lib/pione/command/pione-clean.rb
pione-0.1.3 lib/pione/command/pione-clean.rb