Top Level Namespace

Includes:
RbConfig, Win32

Defined Under Namespace

Modules: Application, Asperalm, Cantemo, Envoi Classes: EnvoiImportUtility, S3Enumerator, Watcher, WindowsServiceController

Constant Summary collapse

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

Envoi::Mam::Cantemo::Agent::WatchFolderManager
SERVICE_NAME =
'cantemo_portal_watch_folder_agent'
SERVICE_DISPLAYNAME =
'Cantemo Portal Watch Folder Agent'

Instance Method Summary collapse

Instance Method Details

#argsObject



32
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders.rb', line 32

def args; @args end

#build_command_aliases(commands_dir = @commands_dir) ⇒ Object



33
34
35
36
37
38
39
40
41
42
# 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_assetsObject



169
# 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) ⇒ Object



164
165
166
167
168
# 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

#usageObject



44
45
46
47
48
49
50
51
52
53
54
# 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) ⇒ Object



162
# File 'lib/envoi/mam/agent/cli/commands/wiredrive.rb', line 162

def wdpu(args = @args); @wdpu ||= Ubiquity::Wiredrive::PresentationUtility.new(args) end