Top Level Namespace

Defined Under Namespace

Modules: Asperalm, Cantemo, Envoi Classes: EnvoiImportUtility, MediaConvertEnumerator, S3Enumerator

Constant Summary collapse

DEFAULT_LIST_JOBS_STATUS =
'ERROR'

Instance Method Summary collapse

Instance Method Details

#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_name.tr('-_', '')
    @commands << command_name
    @command_aliases[command_alias] = command_name
    @command_list_str += "\n\t - #{command_name}"
  end
end

#presentation_assetsObject



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

def presentation_assets; @presentation_assets ||= presentation_assets_get end

#presentation_assets_get(args = @args) ⇒ Object



151
152
153
154
155
# File 'lib/envoi/mam/agent/cli/commands/wiredrive.rb', line 151

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



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

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