class Object

Constants

SERVICE_DISPLAYNAME
SERVICE_NAME
WATCH_FOLDER_MANAGER_CLASS

daemon_control_command_present = sub_command && begin

sub_command = sub_command.dup.downcase if sub_command
%w(start stop restart zap killall status).include?(sub_command)

end should_daemonize = (daemon_control_command_present && %w(start restart).include?(sub_command)) || args

Public Instance Methods

args() click to toggle source
# File lib/cantemo/portal/agent/cli/commands/watch_folders-working.rb, line 38
def args; @args end
build_command_aliases(commands_dir = @commands_dir) click to toggle source
# File lib/envoi/mam/agent/cli/commands.rb, line 33
def build_command_aliases(commands_dir = @commands_dir)
  Dir.glob(File.join(commands_dir, "*.rb")).each do |fn|
    command_file_name = File.basename(fn)
    command_name = File.basename(command_file_name, '.*')
    command_alias = command.tr('-_', '')
    @commands << command
    @command_aliases[command_alias] = command_name
    @command_list_str += "\n\t - #{command}"
  end
end
presentation_assets() click to toggle source
# File lib/envoi/mam/agent/cli/commands/wiredrive.rb, line 169
def presentation_assets; @presentation_assets ||= presentation_assets_get end
presentation_assets_get(args = @args) click to toggle source
# File lib/envoi/mam/agent/cli/commands/wiredrive.rb, line 164
def presentation_assets_get(args = @args)
  presentation_invitation_token = args[:presentation_invitation_token]
  presentation_password = args[:presentation_password]
  wdpu.presentation_assets_get_using_token(presentation_invitation_token, presentation_password)
end
usage() click to toggle source
# File lib/envoi/mam/agent/cli/commands.rb, line 44
def usage

  <<-EOT
Usage: #{File.basename($0)} COMMAND [ARGS]
  
  Available Commands:
    #{@command_list_str}
    
All commands can be run with -h (or --help) for more information.
  EOT
end
wdpu(args = @args) click to toggle source
# File lib/envoi/mam/agent/cli/commands/wiredrive.rb, line 162
def wdpu(args = @args); @wdpu ||= Ubiquity::Wiredrive::PresentationUtility.new(args) end