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

Comments

Projects
None yet
2 participants
@chris-rock
Collaborator

chris-rock commented Oct 28, 2016

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

@chris-rock chris-rock closed this Nov 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment