From 36a278427582e6629141eb8539f658cf1604a528 Mon Sep 17 00:00:00 2001 From: Nate McCurdy Date: Tue, 8 May 2018 10:37:30 -0700 Subject: [PATCH] Resolve Rubocop warnings * Removed the useless assignment in the config_version.rb error catching * Single quote vs. double quote in Puppetfile --- Puppetfile | 8 ++++---- scripts/config_version.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Puppetfile b/Puppetfile index fa1cafb..c3fa4bc 100644 --- a/Puppetfile +++ b/Puppetfile @@ -1,10 +1,10 @@ -forge "https://forge.puppet.com" +forge 'https://forge.puppet.com' # Modules from the Puppet Forge # Versions should be updated to be the latest at the time you start -#mod "puppetlabs/inifile", '1.5.0' -#mod "puppetlabs/stdlib", '4.11.0' -#mod "puppetlabs/concat", '2.1.0' +#mod 'puppetlabs/inifile', '1.5.0' +#mod 'puppetlabs/stdlib', '4.11.0' +#mod 'puppetlabs/concat', '2.1.0' # Modules from Git # Examples: https://github.com/puppetlabs/r10k/blob/master/doc/puppetfile.mkd#examples diff --git a/scripts/config_version.rb b/scripts/config_version.rb index 3de7104..abb3390 100755 --- a/scripts/config_version.rb +++ b/scripts/config_version.rb @@ -2,7 +2,7 @@ begin require 'rugged' require 'socket' -rescue LoadError => e +rescue LoadError t = Time.new puts t.to_i else