Module: Floe::ServiceNow
- Defined in:
- lib/floe/servicenow.rb,
lib/floe/servicenow/cmdb.rb,
lib/floe/servicenow/oauth.rb,
lib/floe/servicenow/table.rb,
lib/floe/servicenow/runner.rb,
lib/floe/servicenow/methods.rb,
lib/floe/servicenow/version.rb,
lib/floe/servicenow/incident.rb,
lib/floe/servicenow/service_catalog.rb
Defined Under Namespace
Classes: Cmdb, Error, Incident, Methods, OAuth, Runner, ServiceCatalog, Table
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.error!(runner_context = {}, cause:, error: "States.TaskFailed") ⇒ Object
18
19
20
21
22
23
24
|
# File 'lib/floe/servicenow.rb', line 18
def error!(runner_context = {}, cause:, error: "States.TaskFailed")
runner_context.merge!(
"running" => false,
"success" => false,
"output" => {"Error" => error, "Cause" => cause}
)
end
|
.success!(runner_context = {}, output:) ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/floe/servicenow.rb', line 26
def success!(runner_context = {}, output:)
runner_context.merge!(
"running" => false,
"success" => true,
"output" => output
)
end
|