Class: BlPackage

Inherits:
BsaSoapBase show all
Defined in:
lib/bl_soap/blpackage.rb

Constant Summary

Constants inherited from BsaSoapBase

BsaSoapBase::CLI_SERVICE, BsaSoapBase::CLI_WSDL, BsaSoapBase::DEFAULT_AUTH_TYPE, BsaSoapBase::HTTP_READ_TIMEOUT, BsaSoapBase::LOGIN_SERVICE, BsaSoapBase::LOGIN_WSDL, BsaSoapBase::ROLE_SERVICE, BsaSoapBase::ROLE_WSDL

Instance Method Summary collapse

Methods inherited from BsaSoapBase

#execute_cli_with_attachments, #execute_cli_with_param_list, #get_all_servers, #get_cli_return_value, #initialize, #validate_cli_option_hash_string_values, #validate_cli_options_hash, #validate_cli_result, #validate_servers

Constructor Details

This class inherits a constructor from BsaSoapBase

Instance Method Details

#create_package_from_component(options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/bl_soap/blpackage.rb', line 2

def create_package_from_component(options = {})
  validate_cli_options_hash([:package_name, :depot_group_id, :component_key], options)
  integer_result = execute_cli_with_param_list(self.class, "createPackageFromComponent",
    [
        options[:package_name],
        options[:depot_group_id],
        false, #bSoftLinked
        false, #bCollectFileAcl
        false, #bCollectFileAttributes
        true, #bCopyFileContents
        false, #bCollectRegistryAcl
        options[:component_key]
    ])
  integer_value = get_cli_return_value(integer_result)
rescue => exception
  raise "Exception executing #{self.class} function: #{exception.to_s}"
end

#delete_blpackage_by_group_and_name(options = {}) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/bl_soap/blpackage.rb', line 20

def delete_blpackage_by_group_and_name(options = {})
  validate_cli_options_hash([:parent_group, :package_name], options)
  integer_result = execute_cli_with_param_list(self.class, "deleteBlPackageByGroupAndName",
                                                            [
                                                                options[:parent_group],
                                                                options[:package_name],
                                                            ])
  integer_value = get_cli_return_value(integer_result)
rescue => exception
  raise "Exception executing #{self.class} function: #{exception.to_s}"
end

#get_dbkey_by_group_and_name(options = {}) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/bl_soap/blpackage.rb', line 32

def get_dbkey_by_group_and_name(options = {})
  validate_cli_options_hash([:parent_group, :depot_group_path], options)
  integer_result = execute_cli_with_param_list(self.class, "getDBKeyByGroupAndName",
                                                            [
                                                                options[:parent_group],
                                                                options[:depot_group_path],
                                                            ])
  integer_value = get_cli_return_value(integer_result)
rescue => exception
  raise "Exception executing #{self.class} function: #{exception.to_s}"
end