Class: Artifactory::Resource::MailServer
- Defined in:
- lib/artifactory/resources/mail_server.rb
Class Method Summary collapse
-
.all(options = {}) ⇒ Array<Resource::MailServer>
Get a list of all mail servers in the system.
-
.find(host, options = {}) ⇒ Resource::MailServer?
Find (fetch) a mail server by its host.
Instance Method Summary collapse
-
#artifactory_url ⇒ Object
Return this object’s
artifactory_url
. -
#artifactory_url=(value) ⇒ Object
Set this object’s
artifactory_url
. -
#artifactory_url? ⇒ Boolean
Determines if the
artifactory_url
value exists and is truthy. -
#enabled ⇒ Object
Return this object’s
enabled
. -
#enabled=(value) ⇒ Object
Set this object’s
enabled
. -
#enabled? ⇒ Boolean
Determines if the
enabled
value exists and is truthy. -
#from ⇒ Object
Return this object’s
from
. -
#from=(value) ⇒ Object
Set this object’s
from
. -
#from? ⇒ Boolean
Determines if the
from
value exists and is truthy. -
#host ⇒ Object
Return this object’s
host
. -
#host=(value) ⇒ Object
Set this object’s
host
. -
#host? ⇒ Boolean
Determines if the
host
value exists and is truthy. -
#password ⇒ Object
Return this object’s
password
. -
#password=(value) ⇒ Object
Set this object’s
password
. -
#password? ⇒ Boolean
Determines if the
password
value exists and is truthy. -
#port ⇒ Object
Return this object’s
port
. -
#port=(value) ⇒ Object
Set this object’s
port
. -
#port? ⇒ Boolean
Determines if the
port
value exists and is truthy. -
#ssl ⇒ Object
Return this object’s
ssl
. -
#ssl=(value) ⇒ Object
Set this object’s
ssl
. -
#ssl? ⇒ Boolean
Determines if the
ssl
value exists and is truthy. -
#subject_prefix ⇒ Object
Return this object’s
subject_prefix
. -
#subject_prefix=(value) ⇒ Object
Set this object’s
subject_prefix
. -
#subject_prefix? ⇒ Boolean
Determines if the
subject_prefix
value exists and is truthy. -
#tls ⇒ Object
Return this object’s
tls
. -
#tls=(value) ⇒ Object
Set this object’s
tls
. -
#tls? ⇒ Boolean
Determines if the
tls
value exists and is truthy. -
#username ⇒ Object
Return this object’s
username
. -
#username=(value) ⇒ Object
Set this object’s
username
. -
#username? ⇒ Boolean
Determines if the
username
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::MailServer>
Get a list of all mail servers in the system.
34 35 36 37 |
# File 'lib/artifactory/resources/mail_server.rb', line 34 def all( = {}) config = Resource::System.configuration() list_from_config('config/mailServer', config, ) end |
.find(host, options = {}) ⇒ Resource::MailServer?
Find (fetch) a mail server by its host.
57 58 59 60 61 62 63 |
# File 'lib/artifactory/resources/mail_server.rb', line 57 def find(host, = {}) config = Resource::System.configuration() find_from_config("config/mailServer/host[text()='#{host}']", config, ) rescue Error::HTTPError => e raise unless e.code == 404 nil end |
Instance Method Details
#artifactory_url ⇒ Object
Return this object’s artifactory_url
75 |
# File 'lib/artifactory/resources/mail_server.rb', line 75 attribute :artifactory_url |
#artifactory_url=(value) ⇒ Object
Set this object’s artifactory_url
75 |
# File 'lib/artifactory/resources/mail_server.rb', line 75 attribute :artifactory_url |
#artifactory_url? ⇒ Boolean
Determines if the artifactory_url
value exists and is truthy
75 |
# File 'lib/artifactory/resources/mail_server.rb', line 75 attribute :artifactory_url |
#enabled ⇒ Object
Return this object’s enabled
66 |
# File 'lib/artifactory/resources/mail_server.rb', line 66 attribute :enabled |
#enabled=(value) ⇒ Object
Set this object’s enabled
66 |
# File 'lib/artifactory/resources/mail_server.rb', line 66 attribute :enabled |
#enabled? ⇒ Boolean
Determines if the enabled
value exists and is truthy
66 |
# File 'lib/artifactory/resources/mail_server.rb', line 66 attribute :enabled |
#from ⇒ Object
Return this object’s from
71 |
# File 'lib/artifactory/resources/mail_server.rb', line 71 attribute :from |
#from=(value) ⇒ Object
Set this object’s from
71 |
# File 'lib/artifactory/resources/mail_server.rb', line 71 attribute :from |
#from? ⇒ Boolean
Determines if the from
value exists and is truthy
71 |
# File 'lib/artifactory/resources/mail_server.rb', line 71 attribute :from |
#host ⇒ Object
Return this object’s host
67 |
# File 'lib/artifactory/resources/mail_server.rb', line 67 attribute :host, ->{ raise 'host missing!' } |
#host=(value) ⇒ Object
Set this object’s host
67 |
# File 'lib/artifactory/resources/mail_server.rb', line 67 attribute :host, ->{ raise 'host missing!' } |
#host? ⇒ Boolean
Determines if the host
value exists and is truthy
67 |
# File 'lib/artifactory/resources/mail_server.rb', line 67 attribute :host, ->{ raise 'host missing!' } |
#password ⇒ Object
Return this object’s password
70 |
# File 'lib/artifactory/resources/mail_server.rb', line 70 attribute :password |
#password=(value) ⇒ Object
Set this object’s password
70 |
# File 'lib/artifactory/resources/mail_server.rb', line 70 attribute :password |
#password? ⇒ Boolean
Determines if the password
value exists and is truthy
70 |
# File 'lib/artifactory/resources/mail_server.rb', line 70 attribute :password |
#port ⇒ Object
Return this object’s port
68 |
# File 'lib/artifactory/resources/mail_server.rb', line 68 attribute :port |
#port=(value) ⇒ Object
Set this object’s port
68 |
# File 'lib/artifactory/resources/mail_server.rb', line 68 attribute :port |
#port? ⇒ Boolean
Determines if the port
value exists and is truthy
68 |
# File 'lib/artifactory/resources/mail_server.rb', line 68 attribute :port |
#ssl ⇒ Object
Return this object’s ssl
74 |
# File 'lib/artifactory/resources/mail_server.rb', line 74 attribute :ssl |
#ssl=(value) ⇒ Object
Set this object’s ssl
74 |
# File 'lib/artifactory/resources/mail_server.rb', line 74 attribute :ssl |
#ssl? ⇒ Boolean
Determines if the ssl
value exists and is truthy
74 |
# File 'lib/artifactory/resources/mail_server.rb', line 74 attribute :ssl |
#subject_prefix ⇒ Object
Return this object’s subject_prefix
72 |
# File 'lib/artifactory/resources/mail_server.rb', line 72 attribute :subject_prefix |
#subject_prefix=(value) ⇒ Object
Set this object’s subject_prefix
72 |
# File 'lib/artifactory/resources/mail_server.rb', line 72 attribute :subject_prefix |
#subject_prefix? ⇒ Boolean
Determines if the subject_prefix
value exists and is truthy
72 |
# File 'lib/artifactory/resources/mail_server.rb', line 72 attribute :subject_prefix |
#tls ⇒ Object
Return this object’s tls
73 |
# File 'lib/artifactory/resources/mail_server.rb', line 73 attribute :tls |
#tls=(value) ⇒ Object
Set this object’s tls
73 |
# File 'lib/artifactory/resources/mail_server.rb', line 73 attribute :tls |
#tls? ⇒ Boolean
Determines if the tls
value exists and is truthy
73 |
# File 'lib/artifactory/resources/mail_server.rb', line 73 attribute :tls |
#username ⇒ Object
Return this object’s username
69 |
# File 'lib/artifactory/resources/mail_server.rb', line 69 attribute :username |
#username=(value) ⇒ Object
Set this object’s username
69 |
# File 'lib/artifactory/resources/mail_server.rb', line 69 attribute :username |
#username? ⇒ Boolean
Determines if the username
value exists and is truthy
69 |
# File 'lib/artifactory/resources/mail_server.rb', line 69 attribute :username |