Class: Strongspace::Command::Quota

Inherits:
Base show all
Defined in:
lib/strongspace/commands/files.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

#initialize, #strongspace

Methods included from PluginInterface

#base_command, #command, included

Methods included from Helpers

#ask, #backup_space?, #bin_folder, #command_name, #computername, #confirm, #confirm_command, #create_pid_file, #credentials_file, #credentials_folder, #delete_pid_file, #display, #error, #format_date, #gui_ssh_key, home_directory, #home_directory, #kill_via_pidfile, #launchd_agents_folder, #logs_folder, #pid_file_path, #pid_from_pid_file, #pids_folder, #plugins_folder, #process_running?, #redisplay, running_on_a_mac?, #running_on_a_mac?, #running_on_windows?, running_on_windows?, #shell, #space_exist?, support_directory, #support_directory

Constructor Details

This class inherits a constructor from Strongspace::Command::Base

Instance Method Details

#indexObject



59
60
61
62
63
64
65
66
# File 'lib/strongspace/commands/files.rb', line 59

def index

  f = strongspace.filesystem
  display "#{strongspace.username}:"
  display "       Quota: #{f["quota_gib"]} GiB"
  display "        Used: #{f["used_gib"]} GiB"
  display "   Available: #{f["avail_gib"]} GiB"
end