digdag_client 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -0
- data/digdag_client.gemspec +1 -1
- data/lib/digdag_client/client/project.rb +5 -5
- data/lib/digdag_client/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79111f57083522c6ccfc8fa093c63a71002577ad
|
4
|
+
data.tar.gz: 53cb96f19577040610aafc7b2000f50394833b63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a357abb37ca7165398ef86c77f040307a9d1020245371841612b7aa96dee8d18197aafb1055a6394a67edbdc056f2423c4f7392095ecbbf767c7094545a31e82
|
7
|
+
data.tar.gz: 55d30956b1c472167057f83d6f31291801d5fa49dc49bb69a4ddc0ae281a1a22c2daa11ef936b3c2ccc7f9a7eb2e39c8102beceff012724765598933a5020ebf
|
data/README.md
CHANGED
@@ -17,7 +17,24 @@ gem install digdag_client
|
|
17
17
|
|
18
18
|
```
|
19
19
|
require 'digdag_client'
|
20
|
+
|
21
|
+
client = Digdag::Client.new
|
22
|
+
client.get_sessions
|
23
|
+
```
|
24
|
+
|
25
|
+
default endpoint: http://localhost:65432/
|
26
|
+
|
27
|
+
## Change endpoint
|
28
|
+
|
29
|
+
|
20
30
|
```
|
31
|
+
client = Digdag::Client.new(
|
32
|
+
endpoint: 'http://localhost:8000/'
|
33
|
+
)
|
34
|
+
```
|
35
|
+
|
36
|
+
# Document
|
37
|
+
http://www.rubydoc.info/gems/digdag_client/0.0.2/Digdag/Client
|
21
38
|
|
22
39
|
# Implemented
|
23
40
|
|
data/digdag_client.gemspec
CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../lib/digdag_client/version', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
|
6
|
-
spec.add_runtime_dependency('faraday', ['~>
|
6
|
+
spec.add_runtime_dependency('faraday', ['~>0.9.2'])
|
7
7
|
spec.add_runtime_dependency('faraday_middleware', ['~> 0.11'])
|
8
8
|
|
9
9
|
spec.name = "digdag_client"
|
@@ -25,7 +25,7 @@ module Digdag
|
|
25
25
|
get("projects/#{id}/revisions")
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
28
|
+
def get_workflow_by_project(id, params)
|
29
29
|
options = {}
|
30
30
|
options[:name] = params[:name]
|
31
31
|
|
@@ -45,7 +45,7 @@ module Digdag
|
|
45
45
|
get("projects/#{id}/workflows/#{name}", options)
|
46
46
|
end
|
47
47
|
|
48
|
-
def
|
48
|
+
def get_workflows_by_project(id, params={})
|
49
49
|
options = {}
|
50
50
|
|
51
51
|
if params[:name]
|
@@ -59,15 +59,15 @@ module Digdag
|
|
59
59
|
get("projects/#{id}/workflows", options)['workflows']
|
60
60
|
end
|
61
61
|
|
62
|
-
def
|
62
|
+
def get_schedules_by_project(id)
|
63
63
|
get("projects/#{id}/sessions")['sessions']
|
64
64
|
end
|
65
65
|
|
66
|
-
def
|
66
|
+
def get_sessions_by_project
|
67
67
|
# TODO
|
68
68
|
end
|
69
69
|
|
70
|
-
def
|
70
|
+
def get_archive_by_project
|
71
71
|
# TODO
|
72
72
|
end
|
73
73
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digdag_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saicologic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.9.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.9.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|