mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
RuboCop & Ruby 2.7 updates
This commit is contained in:
parent
96f564b460
commit
540ffab179
7 changed files with 44 additions and 31 deletions
|
|
@ -1,11 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
forge 'http://forge.puppetlabs.com'
|
||||
|
||||
# rubocop:disable Metrics/LineLength
|
||||
# The next line translates to '../../vendor/puppet_modules' aka ~/.dotfiles/vendor/puppet_modules
|
||||
moduledir "#{File.dirname(File.dirname(File.dirname(__FILE__)))}/vendor/puppet_modules"
|
||||
# rubocop:enable Metrics/LineLength
|
||||
|
||||
mod 'puppetlabs-apt', '7.3.0'
|
||||
mod 'puppetlabs-stdlib', '4.25.1'
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Facter.add(:os_release) do
|
|||
|
||||
line_data = line.split('=')
|
||||
key = line_data[0].downcase
|
||||
value = line_data[1].strip.gsub(/(^\")|(\"$)/, '')
|
||||
value = line_data[1].strip.gsub(/(^")|("$)/, '')
|
||||
os_release_hash[key] = value
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue