cody 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/cody/cli.rb +1 -0
- data/lib/cody/list.rb +11 -1
- data/lib/cody/logs.rb +5 -0
- data/lib/cody/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f84323d071291727d2b3bdf96dbcb4e2bc1e1059f67bcf55dc0a062fbd326e0
|
4
|
+
data.tar.gz: e83e848a9b35fff1b555472c0fbcc5ec48f3068f5cae3c33b244b710928d1416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2ddb7689115463ee43717d0f647f73e320d17b3a468f9b6ba40d4c806bc8bd8f448e18c66d66d1674b28ca90d6898369523b4b16a3de02f11a2d68256c65768
|
7
|
+
data.tar.gz: 4c21a9d3ab5019335dd2f11453efcc7e6726815d41d5a0dc68531c07ca2c3e11b7eff174d1c5d93808f9647ab257f137df3078abdc6ce49e5d301f387390c9fd
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.9.8]
|
7
|
+
- add minimal deploy iam policy docs
|
8
|
+
- list: add --status filter option
|
9
|
+
|
6
10
|
## [0.9.7]
|
7
11
|
- #25 cody list: add sort-by option
|
8
12
|
|
data/lib/cody/cli.rb
CHANGED
@@ -63,6 +63,7 @@ module Cody
|
|
63
63
|
long_desc Help.text(:list)
|
64
64
|
option :format, desc: "Output formats: #{CliFormat.formats.join(', ')}"
|
65
65
|
option :sort_by, desc: "Sort by column: name, status, time"
|
66
|
+
option :status, desc: "status filter. IE: SUCCEEDED, FAILED, FAULT, TIMED_OUT, IN_PROGRESS, STOPPED. Both upper and lowercase works."
|
66
67
|
def list
|
67
68
|
List.new(options).run
|
68
69
|
end
|
data/lib/cody/list.rb
CHANGED
@@ -18,11 +18,21 @@ module Cody
|
|
18
18
|
presenter = CliFormat::Presenter.new(@options)
|
19
19
|
presenter.header = ["Name", "Status", "Time"]
|
20
20
|
projects.each do |project|
|
21
|
-
|
21
|
+
row = [project.name, project.build_status, project.end_time]
|
22
|
+
presenter.rows << row if show?(project.build_status)
|
22
23
|
end
|
23
24
|
presenter.show
|
24
25
|
end
|
25
26
|
|
27
|
+
def show?(build_status)
|
28
|
+
status = @options[:status].upcase if @options[:status]
|
29
|
+
if status
|
30
|
+
build_status == status
|
31
|
+
else
|
32
|
+
true
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
26
36
|
def projects
|
27
37
|
projects = list_projects.map { |p| Project.new(p) }
|
28
38
|
if @options[:sort_by]
|
data/lib/cody/logs.rb
CHANGED
data/lib/cody/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cody
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|