cody 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa39f80f5ce459188463bc201140ce7d85ced81312ae2ddeb0d14f8ec8144e22
4
- data.tar.gz: b85a6c790d4932ce0972f3b744273f6e58ddbc30032133c1cfc2cc7a41b16728
3
+ metadata.gz: 5f84323d071291727d2b3bdf96dbcb4e2bc1e1059f67bcf55dc0a062fbd326e0
4
+ data.tar.gz: e83e848a9b35fff1b555472c0fbcc5ec48f3068f5cae3c33b244b710928d1416
5
5
  SHA512:
6
- metadata.gz: 49fddfb01decedd5d9abe75ca313135e1b2bf46f807fca161dce1d30e54354bb1bc4e19dcde57db9f4690f1c1b43de5a0cdd1c854d7cb941e42453b35991e118
7
- data.tar.gz: fe7f0374ca5fc899f40f907c73715c8f86fc1b58591e9ffbdd3e04323fd7ad1e00a3016007be3e60e40d49ee07231b030ca2a3a03b97648800f40504b7267318
6
+ metadata.gz: d2ddb7689115463ee43717d0f647f73e320d17b3a468f9b6ba40d4c806bc8bd8f448e18c66d66d1674b28ca90d6898369523b4b16a3de02f11a2d68256c65768
7
+ data.tar.gz: 4c21a9d3ab5019335dd2f11453efcc7e6726815d41d5a0dc68531c07ca2c3e11b7eff174d1c5d93808f9647ab257f137df3078abdc6ce49e5d301f387390c9fd
@@ -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
 
@@ -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
@@ -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
- presenter.rows << [project.name, project.build_status, project.end_time]
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]
@@ -1,6 +1,11 @@
1
1
  module Cody
2
2
  class Logs < Base
3
3
  def run
4
+ unless build_id
5
+ puts "WARN: No builds found for #{@project_name.color(:green)} project"
6
+ return
7
+ end
8
+
4
9
  run_with_exception_handling do
5
10
  Tailer.new(@options, build_id).run
6
11
  end
@@ -1,3 +1,3 @@
1
1
  module Cody
2
- VERSION = "0.9.7"
2
+ VERSION = "0.9.8"
3
3
  end
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.7
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-03-27 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport