knife-reporting 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: 4f660f990cd6ad84eebea3321906cd40bd1df648
4
- data.tar.gz: c4106ee29d363cf57503a4b56f9c629fbe45e370
3
+ metadata.gz: a2ddd85dccb8b6601ec4f0b13f177dbb0d7d8111
4
+ data.tar.gz: 3b430b5e09dfe3df7a17e195b5214ebb3690e24c
5
5
  SHA512:
6
- metadata.gz: 60ce80e350766689b9e74b0978cd5196be0ff7b21c4a878862ee261fd42d511590920db1491c9239ae9733ff8030a53876a0dbfcf7db475599a2835c8aa47cb5
7
- data.tar.gz: d0c18d71a6b997185d34a48acc7638364cded63ace3b79cd77cda500f6b130715e73d3065c17ae070ba3d974170659fc2891a4d83a3cbeced8401992eab86053
6
+ metadata.gz: 6b67230bcc2ef93e2f63670694eed20c7bdc62a04662871807d60a6fae8db5061f6085cbdd5fed9e99580fe821369b1b696783ff11c68d97e5b10c17347228a2
7
+ data.tar.gz: 4129f3a9aff2e68b222b8c25ab0d15e5bca79e138c26a4ca67c840a1360302c817d24eb7e70b2837a110099e79242abe79de4e51bf395e10810036448a0145b5
@@ -53,8 +53,8 @@ class Chef
53
53
 
54
54
  def check_start_and_end_times_provided()
55
55
  if config[:start_time] && !config[:end_time]
56
- ui.error("The start_time option was provided, but the end_time option was not. If one is provided, the other is required.")
57
- exit 1
56
+ ui.info("The start_time option was provided, but the end_time option was not. Using today as end_time.")
57
+ config[:end_time] = Time.now.strftime('%m-%d-%Y')
58
58
  elsif config[:end_time] && !config[:start_time]
59
59
  ui.error("The end_time option was provided, but the start_time option was not. If one is provided, the other is required.")
60
60
  exit 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2014-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-cli