class AppContext
Attributes
apikey[RW]
archiveLocation[RW]
cloudproviders[RW]
domainName[RW]
environmentId[RW]
integrations[RW]
job[RW]
masterurl[RW]
project[RW]
reportsLocation[RW]
runnumber[RW]
stepid[RW]
stepname[RW]
targetServer[RW]
workspaceLocation[RW]
Public Class Methods
new(param)
click to toggle source
# File lib/cloudmunch_Ruby_sdk_v2/AppContext.rb, line 31 def initialize(param) @masterurl = "" @cloudproviders = "" @domainName = "" @project = "" @job = "" @workspaceLocation = "" @archiveLocation = "" @stepid = "" @targetServer="" @integrations="" @reportsLocation="" @runnumber="" @apikey="" @stepname="" @environmentId="" load_data(param) end
Public Instance Methods
get_data(keyname)
click to toggle source
# File lib/cloudmunch_Ruby_sdk_v2/AppContext.rb, line 54 def get_data(keyname) @AppContextParams[keyname] end
get_reports_location()
click to toggle source
# File lib/cloudmunch_Ruby_sdk_v3/AppContext.rb, line 68 def get_reports_location() stepDetails = get_data("stepdetails") if stepDetails details = JSON.parse(stepDetails) stepID = details && details["reports_location"] ? details["reports_location"] : '' return stepID end return '' end
get_step_id()
click to toggle source
# File lib/cloudmunch_Ruby_sdk_v3/AppContext.rb, line 58 def get_step_id() stepDetails = get_data("stepdetails") if stepDetails details = JSON.parse(stepDetails) stepID = details && details["id"] ? details["id"] : '' return stepID end return '' end
load_data(param)
click to toggle source
# File lib/cloudmunch_Ruby_sdk_v2/AppContext.rb, line 50 def load_data(param) @AppContextParams = param end