Module: Digdag::Client::Workflow
- Included in:
- Digdag::Client
- Defined in:
- lib/digdag_client/client/workflow.rb
Instance Method Summary collapse
- #get_workflow(id) ⇒ Object
- #get_workflows(params = {}) ⇒ Object
- #search_workflow(params = {}) ⇒ Object
Instance Method Details
#get_workflow(id) ⇒ Object
26 27 28 |
# File 'lib/digdag_client/client/workflow.rb', line 26 def get_workflow(id) get("workflows/#{id}") end |
#get_workflows(params = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/digdag_client/client/workflow.rb', line 13 def get_workflows(params={}) = {} if params[:count] [:count] = params[:count] end if params[:last_id] [:last_id] = params[:last_id] end get('workflows', )["workflows"] end |
#search_workflow(params = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/digdag_client/client/workflow.rb', line 5 def search_workflow(params={}) = {} [:project] = params[:project] [:name] = params[:name] get('workflow', ) end |