Class: Strongspace::Command::Base

Inherits:
Object
  • Object
show all
Includes:
Helpers, PluginInterface
Defined in:
lib/strongspace/commands/base.rb

Direct Known Subclasses

Auth, Delete, Download, Help, Keys, Mkdir, Plugins, Quota, Size, Spaces, Upload, Version

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initialize(args, strongspace = nil) ⇒ Base

Returns a new instance of Base.



7
8
9
10
# File 'lib/strongspace/commands/base.rb', line 7

def initialize(args, strongspace=nil)
  @args = args
  @strongspace = strongspace
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



6
7
8
# File 'lib/strongspace/commands/base.rb', line 6

def args
  @args
end

Instance Method Details

#strongspaceObject



12
13
14
# File 'lib/strongspace/commands/base.rb', line 12

def strongspace
  @strongspace ||= Strongspace::Command.run_internal('auth:client', args)
end