Class: ZAPv2::Automation
- Inherits:
-
Object
- Object
- ZAPv2::Automation
- Defined in:
- lib/zap/v2apis/automation.rb
Instance Method Summary collapse
- #end_delay_job ⇒ Object
-
#initialize(client) ⇒ Automation
constructor
A new instance of Automation.
- #plan_progress(planid) ⇒ Object
- #run_plan(filepath) ⇒ Object
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_job ⇒ Object
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 |