swa 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swa/cli/glue_command.rb +13 -0
- data/lib/swa/glue/crawl.rb +25 -0
- data/lib/swa/glue/crawler.rb +1 -1
- data/lib/swa/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 588a6a0445908b4b0c24eeab23190c51143c2b603f801c7c64fe8d296ac42180
|
4
|
+
data.tar.gz: 21f835b69987db9c4011e4672c1e2bed5a5bf1b2f84112662fb72af1114499c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3633166d5fd54e8299875540f0415b36ee092a01d7e3f055d415910ce9268456f89afe5fe88c79df37597d7dd452a8ffd5c5f935bfb397a1afe0353302e6b1c
|
7
|
+
data.tar.gz: 9189b5b62448a4430865f4965824c05513b334a0af372df722145a5d945996a15874bab4b3f7b9e7396308adde75633201c3e4c7f9264ac5535dd25ef97956ed
|
data/lib/swa/cli/glue_command.rb
CHANGED
@@ -2,6 +2,7 @@ require "aws-sdk-glue"
|
|
2
2
|
require "swa/cli/base_command"
|
3
3
|
require "swa/cli/collection_behaviour"
|
4
4
|
require "swa/cli/item_behaviour"
|
5
|
+
require "swa/glue/crawl"
|
5
6
|
require "swa/glue/crawler"
|
6
7
|
require "swa/glue/database"
|
7
8
|
require "swa/glue/job"
|
@@ -21,6 +22,18 @@ module Swa
|
|
21
22
|
|
22
23
|
include ItemBehaviour
|
23
24
|
|
25
|
+
subcommand ["crawls"], "Show crawls" do
|
26
|
+
|
27
|
+
include CollectionBehaviour
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def collection
|
32
|
+
query_for(:list_crawls, :crawls, Swa::Glue::Crawl, :crawler_name => name)
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
24
37
|
private
|
25
38
|
|
26
39
|
def item
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require "swa/record"
|
2
|
+
|
3
|
+
module Swa
|
4
|
+
module Glue
|
5
|
+
|
6
|
+
class Crawl < Record
|
7
|
+
|
8
|
+
def summary
|
9
|
+
[
|
10
|
+
crawl_id,
|
11
|
+
pad(state, 9),
|
12
|
+
start_time.iso8601,
|
13
|
+
end_time.iso8601
|
14
|
+
].join(" ")
|
15
|
+
end
|
16
|
+
|
17
|
+
delegate :crawl_id
|
18
|
+
delegate :state
|
19
|
+
delegate :start_time
|
20
|
+
delegate :end_time
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
data/lib/swa/glue/crawler.rb
CHANGED
data/lib/swa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -279,6 +279,7 @@ files:
|
|
279
279
|
- lib/swa/ec2/volume.rb
|
280
280
|
- lib/swa/ec2/vpc.rb
|
281
281
|
- lib/swa/elb/load_balancer.rb
|
282
|
+
- lib/swa/glue/crawl.rb
|
282
283
|
- lib/swa/glue/crawler.rb
|
283
284
|
- lib/swa/glue/database.rb
|
284
285
|
- lib/swa/glue/job.rb
|