Class: Runcible::Models::YumImporter

Inherits:
Importer
  • Object
show all
Defined in:
lib/runcible/models/yum_importer.rb

Constant Summary collapse

ID =
'yum_importer'.freeze
REPO_TYPE =
'rpm-repo'.freeze
DOWNLOAD_IMMEDIATE =
'immediate'.freeze
DOWNLOAD_ON_DEMAND =
'on_demand'.freeze
DOWNLOAD_BACKGROUND =
'background'.freeze
DOWNLOAD_POLICIES =
[DOWNLOAD_IMMEDIATE, DOWNLOAD_ON_DEMAND, DOWNLOAD_BACKGROUND].freeze

Instance Attribute Summary collapse

Attributes inherited from Importer

#basic_auth_password, #basic_auth_username, #feed, #max_downloads, #max_speed, #proxy_host, #proxy_password, #proxy_port, #proxy_username, #remove_missing, #retain_old_count, #ssl_ca_cert, #ssl_client_cert, #ssl_client_key, #ssl_validation, #validate

Instance Method Summary collapse

Methods inherited from Importer

#initialize

Constructor Details

This class inherits a constructor from Runcible::Models::Importer

Instance Attribute Details

#download_policyObject

Returns the value of attribute download_policy.



11
12
13
# File 'lib/runcible/models/yum_importer.rb', line 11

def download_policy
  @download_policy
end

#type_skip_listObject

Returns the value of attribute type_skip_list.



11
12
13
# File 'lib/runcible/models/yum_importer.rb', line 11

def type_skip_list
  @type_skip_list
end

Instance Method Details

#configObject



21
22
23
# File 'lib/runcible/models/yum_importer.rb', line 21

def config
  as_json
end

#idObject



13
14
15
# File 'lib/runcible/models/yum_importer.rb', line 13

def id
  YumImporter::ID
end

#repo_typeObject



17
18
19
# File 'lib/runcible/models/yum_importer.rb', line 17

def repo_type
  YumImporter::REPO_TYPE
end