Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove temporary report file #132

Closed
chris-rock opened this issue Oct 28, 2016 · 0 comments
Closed

Remove temporary report file #132

chris-rock opened this issue Oct 28, 2016 · 0 comments
Assignees
Milestone

Comments

@chris-rock
Copy link
Contributor

Cookbook version

2.0.0

Scenario:

Previously we used the runner with generating a json file: https://github.com/chef-cookbooks/audit/blob/v1.1.0/resources/profile.rb#L121-L135 (edited)

output = quiet ? ::File::NULL : $stdout
runner = ::Inspec::Runner.new('report' => true, 'format' => formatter, 'output' => output)
report = runner.report.to_json

This helps us to remove https://github.com/chef-cookbooks/audit/blob/master/files/default/audit_report.rb#L86-L87 and https://github.com/chef-cookbooks/audit/blob/master/libraries/helper.rb#L74-L80. For users who require a local json report, we should implement #126

@chris-rock chris-rock added this to the 2.0 milestone Oct 28, 2016
@vjeffrey vjeffrey self-assigned this Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants