inspec/lib/bundles/inspec-init
Miah Johnson a084187b21 When a profile is created with init, the last item after a / is the (#3175)
profile name. eg "with/slash" would result in a profile created in the
"with" directory named "slash"

Add test for inspec init, and updated other for new output.

Clean up profiles created during testing and place them in temporary
directories.

Describe our test a bit better.
Check that the profile was created in the right location.
Check that the profile is named correctly.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-07-05 15:37:18 -04:00
..
templates/profile Updates the year to 2018 (#2686) 2018-02-18 09:16:15 -05:00
cli.rb When a profile is created with init, the last item after a / is the (#3175) 2018-07-05 15:37:18 -04:00
README.md update readme for bundles 2016-06-29 08:14:36 +02:00

InSpec Extension to create new profiles

This extensions helps you to easily create a new profile

Usage

$ inspec init profile examples/new-profile
Create new profile at /Users/chartmann/Development/compliance/inspec/examples/new-profile
  * Create directory controls
  * Create file controls/example.rb
  * Create file inspec.yml
  * Create directory libraries
  * Create file README.md
  * Create file libraries/.gitkeep

$ inspec check examples/new-profile
Summary
-------
Location: examples/new-profile
Profile: examples/new-profile
Controls: 2
Timestamp: 2016-05-06T14:39:47+02:00
Valid: true

Errors
------

Warnings
--------