Module: Digdag::Client::Workflow

Included in:
Digdag::Client
Defined in:
lib/digdag_client/client/workflow.rb

Instance Method Summary collapse

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={})
  options = {}
  if params[:count]
    options[:count] = params[:count]
  end

  if params[:last_id]
    options[:last_id] = params[:last_id]
  end

  get('workflows', options)["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={})
  options = {}
  options[:project] = params[:project]
  options[:name] = params[:name]

  get('workflow', options)
end