Skip to content

Commit

Permalink
fix left rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saz committed Jan 18, 2017
1 parent 098a5f3 commit e976d9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,16 @@ Metrics/MethodLength:
Metrics/ModuleLength:
Enabled: false

Metrics/BlockLength:
Enabled: false

Style/WhileUntilModifier:
Enabled: true

Lint/AmbiguousRegexpLiteral:
Enabled: true

Lint/Eval:
Security/Eval:
Enabled: true

Lint/BlockAlignment:
Expand Down Expand Up @@ -504,3 +507,5 @@ RSpec/DescribeClass:
RSpec/ExampleLength:
Enabled: False

RSpec/NestedGroups:
Enabled: False
2 changes: 1 addition & 1 deletion lib/facter/rsyslog_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Regexp.last_match(1)
end
when 'RedHat', 'Suse'
if File.exists? "/sbin/rsyslogd"
if File.exist? '/sbin/rsyslogd'
# Query rsyslogd binary for the version
Facter::Util::Resolution.exec("rsyslogd -v | head -n 1 | awk '{print $2}' | sed 's/,//g'")
else
Expand Down
6 changes: 0 additions & 6 deletions spec/defines/rsyslog_snippet_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@

context 'default usage (osfamily = RedHat)' do
let(:title) { 'rsyslog-snippet-basic' }

it 'compiles' do
is_expected.to contain_file('/etc/rsyslog.d/rsyslog-snippet-basic.conf').with_content("# This file is managed by Puppet, changes may be overwritten\nRandom Content\n")
end

let(:title) { 'rsyslog/snippet/basic' }
it 'compiles' do
is_expected.to contain_file('/etc/rsyslog.d/rsyslog-snippet-basic.conf').with_content("# This file is managed by Puppet, changes may be overwritten\nRandom Content\n")
end
Expand Down

0 comments on commit e976d9d

Please sign in to comment.