Class: Artifactory::Resource::Layout
- Defined in:
- lib/artifactory/resources/layout.rb
Class Method Summary collapse
-
.all(options = {}) ⇒ Array<Resource::Layout>
Get a list of all repository layouts in the system.
-
.find(name, options = {}) ⇒ Resource::Layout?
Find (fetch) a layout by its name.
Instance Method Summary collapse
-
#artifact_path_pattern ⇒ Object
Return this object’s
artifact_path_pattern
. -
#artifact_path_pattern=(value) ⇒ Object
Set this object’s
artifact_path_pattern
. -
#artifact_path_pattern? ⇒ Boolean
Determines if the
artifact_path_pattern
value exists and is truthy. -
#descriptor_path_pattern ⇒ Object
Return this object’s
descriptor_path_pattern
. -
#descriptor_path_pattern=(value) ⇒ Object
Set this object’s
descriptor_path_pattern
. -
#descriptor_path_pattern? ⇒ Boolean
Determines if the
descriptor_path_pattern
value exists and is truthy. -
#distinctive_descriptor_path_pattern ⇒ Object
Return this object’s
distinctive_descriptor_path_pattern
. -
#distinctive_descriptor_path_pattern=(value) ⇒ Object
Set this object’s
distinctive_descriptor_path_pattern
. -
#distinctive_descriptor_path_pattern? ⇒ Boolean
Determines if the
distinctive_descriptor_path_pattern
value exists and is truthy. -
#file_integration_revision_reg_exp ⇒ Object
Return this object’s
file_integration_revision_reg_exp
. -
#file_integration_revision_reg_exp=(value) ⇒ Object
Set this object’s
file_integration_revision_reg_exp
. -
#file_integration_revision_reg_exp? ⇒ Boolean
Determines if the
file_integration_revision_reg_exp
value exists and is truthy. -
#folder_integration_revision_reg_exp ⇒ Object
Return this object’s
folder_integration_revision_reg_exp
. -
#folder_integration_revision_reg_exp=(value) ⇒ Object
Set this object’s
folder_integration_revision_reg_exp
. -
#folder_integration_revision_reg_exp? ⇒ Boolean
Determines if the
folder_integration_revision_reg_exp
value exists and is truthy. -
#name ⇒ Object
Return this object’s
name
. -
#name=(value) ⇒ Object
Set this object’s
name
. -
#name? ⇒ Boolean
Determines if the
name
value exists and is truthy.
Methods inherited from Base
attribute, attributes, #attributes, #client, #client=, #client?, #extract_client!, extract_client!, find_from_config, #format_repos!, format_repos!, from_hash, from_url, has_attribute?, #initialize, #inspect, list_from_config, #set, #to_hash, #to_json, #to_matrix_properties, #to_query_string_parameters, #to_s, #url_safe, url_safe
Constructor Details
This class inherits a constructor from Artifactory::Resource::Base
Class Method Details
.all(options = {}) ⇒ Array<Resource::Layout>
Get a list of all repository layouts in the system.
34 35 36 37 |
# File 'lib/artifactory/resources/layout.rb', line 34 def all( = {}) config = Resource::System.configuration() list_from_config('config/repoLayouts/repoLayout', config, ) end |
.find(name, options = {}) ⇒ Resource::Layout?
Find (fetch) a layout by its name.
57 58 59 60 61 62 63 |
# File 'lib/artifactory/resources/layout.rb', line 57 def find(name, = {}) config = Resource::System.configuration() find_from_config("config/repoLayouts/repoLayout/name[text()='#{name}']", config, ) rescue Error::HTTPError => e raise unless e.code == 404 nil end |
Instance Method Details
#artifact_path_pattern ⇒ Object
Return this object’s artifact_path_pattern
67 |
# File 'lib/artifactory/resources/layout.rb', line 67 attribute :artifact_path_pattern |
#artifact_path_pattern=(value) ⇒ Object
Set this object’s artifact_path_pattern
67 |
# File 'lib/artifactory/resources/layout.rb', line 67 attribute :artifact_path_pattern |
#artifact_path_pattern? ⇒ Boolean
Determines if the artifact_path_pattern
value exists and is truthy
67 |
# File 'lib/artifactory/resources/layout.rb', line 67 attribute :artifact_path_pattern |
#descriptor_path_pattern ⇒ Object
Return this object’s descriptor_path_pattern
69 |
# File 'lib/artifactory/resources/layout.rb', line 69 attribute :descriptor_path_pattern |
#descriptor_path_pattern=(value) ⇒ Object
Set this object’s descriptor_path_pattern
69 |
# File 'lib/artifactory/resources/layout.rb', line 69 attribute :descriptor_path_pattern |
#descriptor_path_pattern? ⇒ Boolean
Determines if the descriptor_path_pattern
value exists and is truthy
69 |
# File 'lib/artifactory/resources/layout.rb', line 69 attribute :descriptor_path_pattern |
#distinctive_descriptor_path_pattern ⇒ Object
Return this object’s distinctive_descriptor_path_pattern
68 |
# File 'lib/artifactory/resources/layout.rb', line 68 attribute :distinctive_descriptor_path_pattern, true |
#distinctive_descriptor_path_pattern=(value) ⇒ Object
Set this object’s distinctive_descriptor_path_pattern
68 |
# File 'lib/artifactory/resources/layout.rb', line 68 attribute :distinctive_descriptor_path_pattern, true |
#distinctive_descriptor_path_pattern? ⇒ Boolean
Determines if the distinctive_descriptor_path_pattern
value exists and is truthy
68 |
# File 'lib/artifactory/resources/layout.rb', line 68 attribute :distinctive_descriptor_path_pattern, true |
#file_integration_revision_reg_exp ⇒ Object
Return this object’s file_integration_revision_reg_exp
71 |
# File 'lib/artifactory/resources/layout.rb', line 71 attribute :file_integration_revision_reg_exp |
#file_integration_revision_reg_exp=(value) ⇒ Object
Set this object’s file_integration_revision_reg_exp
71 |
# File 'lib/artifactory/resources/layout.rb', line 71 attribute :file_integration_revision_reg_exp |
#file_integration_revision_reg_exp? ⇒ Boolean
Determines if the file_integration_revision_reg_exp
value exists and is truthy
71 |
# File 'lib/artifactory/resources/layout.rb', line 71 attribute :file_integration_revision_reg_exp |
#folder_integration_revision_reg_exp ⇒ Object
Return this object’s folder_integration_revision_reg_exp
70 |
# File 'lib/artifactory/resources/layout.rb', line 70 attribute :folder_integration_revision_reg_exp |
#folder_integration_revision_reg_exp=(value) ⇒ Object
Set this object’s folder_integration_revision_reg_exp
70 |
# File 'lib/artifactory/resources/layout.rb', line 70 attribute :folder_integration_revision_reg_exp |
#folder_integration_revision_reg_exp? ⇒ Boolean
Determines if the folder_integration_revision_reg_exp
value exists and is truthy
70 |
# File 'lib/artifactory/resources/layout.rb', line 70 attribute :folder_integration_revision_reg_exp |
#name ⇒ Object
Return this object’s name
66 |
# File 'lib/artifactory/resources/layout.rb', line 66 attribute :name, ->{ raise 'Name missing!' } |
#name=(value) ⇒ Object
Set this object’s name
66 |
# File 'lib/artifactory/resources/layout.rb', line 66 attribute :name, ->{ raise 'Name missing!' } |
#name? ⇒ Boolean
Determines if the name
value exists and is truthy
66 |
# File 'lib/artifactory/resources/layout.rb', line 66 attribute :name, ->{ raise 'Name missing!' } |