Top Level Namespace
- Includes:
- RbConfig, Win32
Defined Under Namespace
Modules: Application, Asperalm, Cantemo, Envoi Classes: EnvoiImportUtility, Watcher
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
- #args ⇒ Object
- #presentation_assets ⇒ Object
- #presentation_assets_get(args = @args) ⇒ Object
-
#usage ⇒ Object
module Envoi module Mam class Agent class CLI class Commands.
- #wdpu(args = @args) ⇒ Object
Instance Method Details
#args ⇒ Object
32 |
# File 'lib/cantemo/portal/agent/cli/commands/watch_folders.rb', line 32 def args; @args end |
#presentation_assets ⇒ Object
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 |
#usage ⇒ Object
module Envoi
module Mam
class Agent
class CLI
class Commands
# Commands
end
# CLI
end
# Agent
end
# Mam
end
# Envoi
end
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/envoi/mam/agent/cli/commands.rb', line 26 def usage command_list_str = '' Dir.glob(File.join(@commands_dir, "*#{@command_ext}")).each do |fn| command_list_str += "\n\t - #{File.basename(fn, @command_ext)}" end <<-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 |