mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(maint) Update VMPooler files with fixes for Rubocop violations
This commit updates vmpooler.rb, api.rb and providers.rb with style changes as per rubocop style violations. This commit also updates the rubocop configuration to always use LF line endings even on Windows as rubocop was expecting CRLF even though git is configured for LF.
This commit is contained in:
parent
2e255a5a43
commit
ba686e3c0a
4 changed files with 9 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ module Vmpooler
|
|||
require 'yaml'
|
||||
require 'set'
|
||||
|
||||
%w(api graphite logger pool_manager vsphere_helper statsd dummy_statsd providers).each do |lib|
|
||||
%w[api graphite logger pool_manager vsphere_helper statsd dummy_statsd providers].each do |lib|
|
||||
begin
|
||||
require "vmpooler/#{lib}"
|
||||
rescue LoadError
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ module Vmpooler
|
|||
use Vmpooler::Dashboard
|
||||
|
||||
# Load API components
|
||||
%w(helpers dashboard reroute v1).each do |lib|
|
||||
%w[helpers dashboard reroute v1].each do |lib|
|
||||
begin
|
||||
require "api/#{lib}"
|
||||
rescue LoadError
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%w(base dummy vsphere).each do |lib|
|
||||
%w[base dummy vsphere].each do |lib|
|
||||
begin
|
||||
require "vmpooler/providers/#{lib}"
|
||||
rescue LoadError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue