Class: RightScale::PolicyAudit
Instance Attribute Summary collapse
-
#audit ⇒ Object
AuditProxy.
Instance Method Summary collapse
-
#append_error(text, options = {}) ⇒ Object
See AuditProxy::append_error.
-
#append_info(text, options = {}) ⇒ Object
See AuditProxy::append_info.
-
#append_output(text) ⇒ Object
See AuditProxy::append_output.
-
#create_new_section(title, options = {}) ⇒ Object
See AuditProxy::append_create_new_section.
-
#initialize(audit) ⇒ PolicyAudit
constructor
Creates a PolicyAudit to wrap AuditProxy.
-
#update_status(status, options = {}) ⇒ Object
# See AuditProxy::update_status.
Constructor Details
#initialize(audit) ⇒ PolicyAudit
Creates a PolicyAudit to wrap AuditProxy
Parameters
- audit(AuditProxy)
-
the audit that pertains to the bundle
33 34 35 |
# File 'lib/instance/policy_audit.rb', line 33 def initialize(audit) @audit = audit end |
Instance Attribute Details
#audit ⇒ Object
AuditProxy
27 28 29 |
# File 'lib/instance/policy_audit.rb', line 27 def audit @audit end |
Instance Method Details
#append_error(text, options = {}) ⇒ Object
See AuditProxy::append_error
Parameters
- text(String)
-
Error text to append to audit entry
- options(String)
-
Optional, must be one of RightScale::EventCategories::CATEGORIES
Return
- true
-
Always return true
82 83 84 |
# File 'lib/instance/policy_audit.rb', line 82 def append_error(text, ={}) @audit.append_error(text, ) end |
#append_info(text, options = {}) ⇒ Object
See AuditProxy::append_info
Parameters
- text(String)
-
Informational text to append to audit entry
- options(String)
-
Optional, must be one of RightScale::EventCategories::CATEGORIES
Return
- true
-
Always return true
70 71 72 |
# File 'lib/instance/policy_audit.rb', line 70 def append_info(text, ={}) true end |
#append_output(text) ⇒ Object
See AuditProxy::append_output
Parameters
- text(String)
-
Output to append to audit entry
Return
- true
-
Always return true
93 94 95 96 |
# File 'lib/instance/policy_audit.rb', line 93 def append_output(text) RightScale::Log.info text true end |
#create_new_section(title, options = {}) ⇒ Object
See AuditProxy::append_create_new_section
Parameters
- title(String)
-
Title of new audit section, will replace audit status as well
- options(String)
-
Optional, must be one of RightScale::EventCategories::CATEGORIES
Return
- true
-
Always return true
57 58 59 60 |
# File 'lib/instance/policy_audit.rb', line 57 def create_new_section(title, ={}) RightScale::Log.info title true end |
#update_status(status, options = {}) ⇒ Object
# See AuditProxy::update_status
Parameters
- status(String)
-
New audit entry status
- options(String)
-
Optional, must be one of RightScale::EventCategories::CATEGORIES
Return
- true
-
Always return true
45 46 47 |
# File 'lib/instance/policy_audit.rb', line 45 def update_status(status, ={}) true end |