Class: ZAPv2::Automation

Inherits:
Object
  • Object
show all
Defined in:
lib/zap/v2apis/automation.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Automation

Returns a new instance of Automation.



5
6
7
# File 'lib/zap/v2apis/automation.rb', line 5

def initialize(client)
  @client = client
end

Instance Method Details

#end_delay_jobObject



13
14
15
# File 'lib/zap/v2apis/automation.rb', line 13

def end_delay_job
  @client.get('/JSON/automation/action/endDelayJob/')
end

#plan_progress(planid) ⇒ Object



9
10
11
# File 'lib/zap/v2apis/automation.rb', line 9

def plan_progress(planid)
  @client.get("/JSON/automation/view/planProgress/?planId=#{planid}")
end

#run_plan(filepath) ⇒ Object



17
18
19
# File 'lib/zap/v2apis/automation.rb', line 17

def run_plan(filepath)
  @client.get("/JSON/automation/action/runPlan/?filePath=#{filepath}")
end