class FlowApi::Rest

Public Class Methods

base_params() click to toggle source
# File lib/flow_api/manager.rb, line 12
def base_params
  {
    project_api_token: ENV["FLOW_PROJECT_API_TOKEN"]
  }
end
basic_options() click to toggle source
Calls superclass method
# File lib/flow_api/manager.rb, line 18
def basic_options
  @tmp ||= super.merge(other_base_execute_option: { log: Logger.new(STDOUT) })
end
basic_url() click to toggle source
# File lib/flow_api/manager.rb, line 8
def basic_url
  ENV["FLOW_DOMAIN"] || "http://api-lyon.flow.ci"
end
send_log_json(project_id, job_id, json_str) click to toggle source
# File lib/flow_api/manager.rb, line 22
def send_log_json(project_id, job_id, json_str)
  path = "/jobs/#{job_id}/upload_test_log_details"
  patch(path, project_id: project_id, json_str: json_str)
end