veracodecli 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/veracodecli +14 -13
  4. data/veracodecli.gemspec +2 -2
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f95a20e511cfcd114faf02c909ebd0de3b5be2df
4
- data.tar.gz: a7b89cd5d5b01e350b602143467bb2b794be9221
3
+ metadata.gz: 69791b0d8ceb23e41bb1e9631471169f4c49f56a
4
+ data.tar.gz: 088e1dc9bf25486aec7ddc900eef3c33932bd762
5
5
  SHA512:
6
- metadata.gz: 68e52f8cf492440497c6b32abbbb0b9ff330bbcc373a52ce7d516b271b903e41562c0eb673e0ec37b06cecf6dcd44d5ec53fb65f96c17e7220676d66918faf81
7
- data.tar.gz: df9d299b08890c8d2c72a094d8dd49b01d26f12961f7a55ea0d6b665fb09567be00bf562f2bb3787d74d763103e5c3d3443a213a2dbd301b4fb329ade9938957
6
+ metadata.gz: 7f49b9ffbffccd59f592b2c62a7f088c9101ffda828c64cffc2c8c0bf5be0059ef216611e5a05fe76b2c05a59ecb58d651069ef79cf54c58529d108a3664a35e
7
+ data.tar.gz: 8bc02e3e11b082678b479830293c33cc7c4df1c045830561254d5b526d01003fd9e237d6abf962bfcdadb12878a7b2504d0ee9c7631191c84ec369d64a2de008
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.15
1
+ 1.0.16
data/bin/veracodecli CHANGED
@@ -40,42 +40,43 @@ Commander.configure do
40
40
  end
41
41
 
42
42
  command :get_prescan_results do |c|
43
- c.syntax = 'veracodecli get-prescan-results [app_id]'
43
+ c.syntax = 'veracodecli get-prescan-results --app_id [app_id]'
44
44
  c.description = 'Downloads the prescan results from Veracode.'
45
- c.action do |args|
46
- fail 'Specify app_id.' if args.first.nil?
45
+ c.option '--app_id STRING', String, 'Application id'
46
+ c.action do |args,options|
47
+ fail 'Specify app_id.' unless options.app_id
47
48
  VeracodeApiResults.get_prescan_results args.first
48
49
  end
49
50
  end
50
51
 
51
52
  command :get_status do |c|
52
- c.syntax = 'veracodecli get-status [app_id]'
53
+ c.syntax = 'veracodecli get-status --app_id [app_id]'
53
54
  c.description = 'Gets scan state from Veracode.'
54
- c.action do |args|
55
- fail 'Specify app_id.' if args.first.nil?
56
- VeracodeApiResults.get_build_status args.first
55
+ c.option '--app_id STRING', String, 'Application id'
56
+ c.action do |args,options|
57
+ fail 'Specify app_id.' unless option.app_id
58
+ VeracodeApiResults.get_build_status options.app_id
57
59
  end
58
60
  end
59
61
 
60
62
  command :get_report do |c|
61
- c.syntax = 'veracodecli get_report [app_name]'
63
+ c.syntax = 'veracodecli get_report --app_name [app_name]'
62
64
  c.description = 'Downloads the final scan report from Veracode.'
63
- c.action do |args|
64
- fail 'Specify app_name.' if args.first.nil?
65
- VeracodeApiMacros.get_report_macro args.first
65
+ c.option '--app_name STRING', String, 'Application name'
66
+ c.action do |args,options|
67
+ fail 'Specify app_name.' unless options.app_name
68
+ VeracodeApiMacros.get_report_macro options.app_name
66
69
  end
67
70
  end
68
71
 
69
72
  command :get_pdf_report do |c|
70
73
  c.syntax = 'veracodecli get_pdf_report --app_name [app_name] --option [option]'
71
- # c.option '--app STRING', String, 'Upload report to slack?'
72
74
  c.option '--slack_upload STRING', String, 'Upload report to slack?'
73
75
  c.description = 'Downloads the final scan report in pdf format.'
74
76
  c.action do |args, options|
75
77
  abort 'Missing parameter --app_name' unless options.app_name
76
78
  abort 'Please specify slack token in config.yml' if ((!defined? Settings.slack_token) && (options.slack_upload.eql? 'yes'))
77
79
  abort 'Please specify slack channel in config.yml' if ((!defined? Settings.slack_channel) && (options.slack_upload.eql? 'yes'))
78
- # abort 'Please specify an app' unless options.app
79
80
  file = VeracodeApiMacros.get_pdf_macro options.app_name
80
81
  Slack.send_to_slack file if (options.slack_upload.eql? 'yes')
81
82
  end
data/veracodecli.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: veracodecli 1.0.15 ruby lib
5
+ # stub: veracodecli 1.0.16 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "veracodecli"
9
- s.version = "1.0.15"
9
+ s.version = "1.0.16"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veracodecli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen