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

cpan resource: check for Perl module installation #2254

Merged
merged 2 commits into from
Oct 25, 2017
Merged

cpan resource: check for Perl module installation #2254

merged 2 commits into from
Oct 25, 2017

Conversation

mgrobelin
Copy link
Contributor

New PR based on feedback from #2196

control 'cpan-1' do
impact 1.0
desc '
Ensure Perl modules DBI and DBD::Pg are installed.
'

describe cpan('DBI') do
it { should be_installed }
end

describe cpan('DBD::Pg') do
it { should be_installed }
its('version') { should cmp >= '3.0' }
end
end

Signed-off-by: Markus Grobelin [email protected]

control 'cpan-1' do
  impact 1.0
  desc '
    Ensure Perl modules DBI and DBD::Pg are installed.
  '

  describe cpan('DBI') do
    it { should be_installed }
  end

  describe cpan('DBD::Pg') do
    it { should be_installed }
    its('version') { should cmp >= '3.0' }
  end
end

Signed-off-by: Markus Grobelin <[email protected]>
@mgrobelin mgrobelin requested a review from a team as a code owner October 18, 2017 08:27
@adamleff adamleff changed the title Added CPAN resource to check Perl modules cpan resource: check for Perl module installation Oct 24, 2017
Copy link
Contributor

@adamleff adamleff left a comment

Choose a reason for hiding this comment

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

Super addition, @mgrobelin - thanks!

@adamleff adamleff requested a review from a team October 24, 2017 21:29
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.

Awesome @mgrobelin Thank you for this addition!

@chris-rock chris-rock merged commit c626dfd into inspec:master Oct 25, 2017
@mgrobelin mgrobelin deleted the cpan_resource branch October 26, 2017 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants