Module: Abiraj
- Defined in:
- lib/abiraj.rb,
lib/abiraj/version.rb
Defined Under Namespace
Classes: Account, Accounts, Error, Init
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.authtoken ⇒ Object
Returns the value of attribute authtoken.
-
.certificate ⇒ Object
Returns the value of attribute certificate.
-
.org ⇒ Object
Returns the value of attribute org.
-
.server_url ⇒ Object
Returns the value of attribute server_url.
Class Method Summary collapse
Class Attribute Details
.authtoken ⇒ Object
Returns the value of attribute authtoken.
9 10 11 |
# File 'lib/abiraj.rb', line 9 def authtoken @authtoken end |
.certificate ⇒ Object
Returns the value of attribute certificate.
9 10 11 |
# File 'lib/abiraj.rb', line 9 def certificate @certificate end |
.org ⇒ Object
Returns the value of attribute org.
9 10 11 |
# File 'lib/abiraj.rb', line 9 def org @org end |
.server_url ⇒ Object
Returns the value of attribute server_url.
9 10 11 |
# File 'lib/abiraj.rb', line 9 def server_url @server_url end |
Class Method Details
.log(message:, level: "info") ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/abiraj.rb', line 10 def log(message:, level: "info") prefix = "[Abiraj] " = .to_s case level.downcase when "error" Chef::Log.error(prefix + ) nil when "debug" Chef::Log.debug(prefix + ) when "warn" Chef::Log.warn(prefix + ) when "info" Chef::Log.info(prefix + ) end end |