veracodecli 1.0.14 → 1.0.15

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: a8cd1ec0ce1108f74d98a44c7005697cbc33c0b5
4
- data.tar.gz: cdf74a794957ea1cb0554640773ffa125e1592a4
3
+ metadata.gz: f95a20e511cfcd114faf02c909ebd0de3b5be2df
4
+ data.tar.gz: a7b89cd5d5b01e350b602143467bb2b794be9221
5
5
  SHA512:
6
- metadata.gz: 41938ee4375a0c758659dfcb2842c9f401a987ecc5517a86354497b423166490360b9f2b60b4908402421c7bded726013bc035821ca4d35a2a1a388d108ffc04
7
- data.tar.gz: 66ec46f8499b02c6e4995c2f659a16d1015c4a48c7e71afa758ff2546f2ecc63a4bf6a5ab71b3d16994057989c39b0750758e1a0a46d687fdfa1c46f5c19a5f6
6
+ metadata.gz: 68e52f8cf492440497c6b32abbbb0b9ff330bbcc373a52ce7d516b271b903e41562c0eb673e0ec37b06cecf6dcd44d5ec53fb65f96c17e7220676d66918faf81
7
+ data.tar.gz: df9d299b08890c8d2c72a094d8dd49b01d26f12961f7a55ea0d6b665fb09567be00bf562f2bb3787d74d763103e5c3d3443a213a2dbd301b4fb329ade9938957
data/README.md CHANGED
@@ -21,11 +21,13 @@ gem install veracodecli
21
21
  ## Usage
22
22
 
23
23
  1. set appropriate configs in `/etc/veracodecli.yml`. The only two that are _required_ are `veracode_username` and `veracode_password` that are your API credentials for veracode
24
- 2. To run a scan use `veracodecli scan` --app_name _app\_name_ --repo _repo\_url_
24
+ 2. To run a scan use `veracodecli scan` _app\_name_ --repo _repo\_url_
25
25
 
26
26
  - `veracodecli help` to see commands
27
27
  - `veracodecli [command] -h` to see command syntax
28
28
 
29
+ (append `--trace` to the end to see a stack trace if you are encountering errors.)
30
+
29
31
  ## Roadmap
30
32
  Ideas for future development.
31
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.14
1
+ 1.0.15
data/bin/veracodecli CHANGED
@@ -12,12 +12,12 @@ include Slack
12
12
 
13
13
  Commander.configure do
14
14
  program :name, 'veracodecli'
15
- program :version, '0.1.2'
15
+ program :version, '1.0.14'
16
16
  program :description, 'CLI for automating veracode api requests'
17
17
  program :help, 'Author', 'Isaiah Thiessen <isaiah.thiessen@telus.com>'
18
18
 
19
19
  command :scan do |c|
20
- c.syntax = 'veracodecli scan [app_name] [repo] --option [option]'
20
+ c.syntax = 'veracodecli scan --app_name [app_name] --repo [repo] --option [option]'
21
21
  c.description = 'Submits a scan to Veracode.'
22
22
  c.option '--business_unit STRING', String, 'Business Unit Name'
23
23
  c.option '--team STRING', String, 'Team Name'
@@ -67,15 +67,16 @@ Commander.configure do
67
67
  end
68
68
 
69
69
  command :get_pdf_report do |c|
70
- c.syntax = 'veracodecli get_pdf_report [app_name] --option [option]'
70
+ c.syntax = 'veracodecli get_pdf_report --app_name [app_name] --option [option]'
71
71
  # c.option '--app STRING', String, 'Upload report to slack?'
72
72
  c.option '--slack_upload STRING', String, 'Upload report to slack?'
73
73
  c.description = 'Downloads the final scan report in pdf format.'
74
74
  c.action do |args, options|
75
+ abort 'Missing parameter --app_name' unless options.app_name
75
76
  abort 'Please specify slack token in config.yml' if ((!defined? Settings.slack_token) && (options.slack_upload.eql? 'yes'))
76
77
  abort 'Please specify slack channel in config.yml' if ((!defined? Settings.slack_channel) && (options.slack_upload.eql? 'yes'))
77
78
  # abort 'Please specify an app' unless options.app
78
- file = VeracodeApiMacros.get_pdf_macro args.first
79
+ file = VeracodeApiMacros.get_pdf_macro options.app_name
79
80
  Slack.send_to_slack file if (options.slack_upload.eql? 'yes')
80
81
  end
81
82
  end
data/veracodecli.gemspec CHANGED
@@ -2,16 +2,16 @@
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.14 ruby lib
5
+ # stub: veracodecli 1.0.15 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "veracodecli"
9
- s.version = "1.0.14"
9
+ s.version = "1.0.15"
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"]
13
13
  s.authors = ["isaiah thiessen"]
14
- s.date = "2015-11-04"
14
+ s.date = "2015-11-05"
15
15
  s.description = "Ruby based CLI for accessing veracode's api"
16
16
  s.email = "isaiah.thiessen@telus.com"
17
17
  s.executables = ["veracodecli"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veracodecli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaiah thiessen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-04 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport