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

provide inspec.version information #1719

Merged
merged 1 commit into from
Apr 26, 2017
Merged

provide inspec.version information #1719

merged 1 commit into from
Apr 26, 2017

Conversation

arlimus
Copy link
Contributor

@arlimus arlimus commented Apr 26, 2017

as a friendly shortcut and a native call within profiles (i.e. instead of Inspec::VERSION)

as a friendly shortcut and a native call within profiles

Signed-off-by: Dominik Richter <[email protected]>
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea @arlimus

# Provide a shorthand to retrieve the inspec version from within a profile
#
# @return [String] inspec version
def version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea, this reminds me that we should make the meta-data accessible via inspec.profile. But lets do that later.

@arlimus arlimus merged commit 71a4f0d into master Apr 26, 2017
@arlimus arlimus deleted the dr/inspec-version branch April 26, 2017 11:40
@adamleff adamleff added the Type: Enhancement Improves an existing feature label May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants