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_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.
18 19 20 21 |
# File 'lib/artifactory/resources/mail_server.rb', line 18 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.
41 42 43 44 45 46 47 |
# File 'lib/artifactory/resources/mail_server.rb', line 41 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
59 |
# File 'lib/artifactory/resources/mail_server.rb', line 59 attribute :artifactory_url |
#artifactory_url=(value) ⇒ Object
Set this object’s artifactory_url
59 |
# File 'lib/artifactory/resources/mail_server.rb', line 59 attribute :artifactory_url |
#artifactory_url? ⇒ Boolean
Determines if the artifactory_url
value exists and is truthy
59 |
# File 'lib/artifactory/resources/mail_server.rb', line 59 attribute :artifactory_url |
#enabled ⇒ Object
Return this object’s enabled
50 |
# File 'lib/artifactory/resources/mail_server.rb', line 50 attribute :enabled |
#enabled=(value) ⇒ Object
Set this object’s enabled
50 |
# File 'lib/artifactory/resources/mail_server.rb', line 50 attribute :enabled |
#enabled? ⇒ Boolean
Determines if the enabled
value exists and is truthy
50 |
# File 'lib/artifactory/resources/mail_server.rb', line 50 attribute :enabled |
#from ⇒ Object
Return this object’s from
55 |
# File 'lib/artifactory/resources/mail_server.rb', line 55 attribute :from |
#from=(value) ⇒ Object
Set this object’s from
55 |
# File 'lib/artifactory/resources/mail_server.rb', line 55 attribute :from |
#from? ⇒ Boolean
Determines if the from
value exists and is truthy
55 |
# File 'lib/artifactory/resources/mail_server.rb', line 55 attribute :from |
#host ⇒ Object
Return this object’s host
51 |
# File 'lib/artifactory/resources/mail_server.rb', line 51 attribute :host, ->{ raise 'host missing!' } |
#host=(value) ⇒ Object
Set this object’s host
51 |
# File 'lib/artifactory/resources/mail_server.rb', line 51 attribute :host, ->{ raise 'host missing!' } |
#host? ⇒ Boolean
Determines if the host
value exists and is truthy
51 |
# File 'lib/artifactory/resources/mail_server.rb', line 51 attribute :host, ->{ raise 'host missing!' } |
#password ⇒ Object
Return this object’s password
54 |
# File 'lib/artifactory/resources/mail_server.rb', line 54 attribute :password |
#password=(value) ⇒ Object
Set this object’s password
54 |
# File 'lib/artifactory/resources/mail_server.rb', line 54 attribute :password |
#password? ⇒ Boolean
Determines if the password
value exists and is truthy
54 |
# File 'lib/artifactory/resources/mail_server.rb', line 54 attribute :password |
#port ⇒ Object
Return this object’s port
52 |
# File 'lib/artifactory/resources/mail_server.rb', line 52 attribute :port |
#port=(value) ⇒ Object
Set this object’s port
52 |
# File 'lib/artifactory/resources/mail_server.rb', line 52 attribute :port |
#port? ⇒ Boolean
Determines if the port
value exists and is truthy
52 |
# File 'lib/artifactory/resources/mail_server.rb', line 52 attribute :port |
#ssl ⇒ Object
Return this object’s ssl
58 |
# File 'lib/artifactory/resources/mail_server.rb', line 58 attribute :ssl |
#ssl=(value) ⇒ Object
Set this object’s ssl
58 |
# File 'lib/artifactory/resources/mail_server.rb', line 58 attribute :ssl |
#ssl? ⇒ Boolean
Determines if the ssl
value exists and is truthy
58 |
# File 'lib/artifactory/resources/mail_server.rb', line 58 attribute :ssl |
#subject_prefix ⇒ Object
Return this object’s subject_prefix
56 |
# File 'lib/artifactory/resources/mail_server.rb', line 56 attribute :subject_prefix |
#subject_prefix=(value) ⇒ Object
Set this object’s subject_prefix
56 |
# File 'lib/artifactory/resources/mail_server.rb', line 56 attribute :subject_prefix |
#subject_prefix? ⇒ Boolean
Determines if the subject_prefix
value exists and is truthy
56 |
# File 'lib/artifactory/resources/mail_server.rb', line 56 attribute :subject_prefix |
#tls ⇒ Object
Return this object’s tls
57 |
# File 'lib/artifactory/resources/mail_server.rb', line 57 attribute :tls |
#tls=(value) ⇒ Object
Set this object’s tls
57 |
# File 'lib/artifactory/resources/mail_server.rb', line 57 attribute :tls |
#tls? ⇒ Boolean
Determines if the tls
value exists and is truthy
57 |
# File 'lib/artifactory/resources/mail_server.rb', line 57 attribute :tls |
#username ⇒ Object
Return this object’s username
53 |
# File 'lib/artifactory/resources/mail_server.rb', line 53 attribute :username |
#username=(value) ⇒ Object
Set this object’s username
53 |
# File 'lib/artifactory/resources/mail_server.rb', line 53 attribute :username |
#username? ⇒ Boolean
Determines if the username
value exists and is truthy
53 |
# File 'lib/artifactory/resources/mail_server.rb', line 53 attribute :username |