Use single quotes where no variable interpolation is required.
This commit is contained in:
parent
21be3b2da3
commit
8e50448b31
@ -11,6 +11,6 @@ rvm:
|
|||||||
- 1.9.3
|
- 1.9.3
|
||||||
- 2.0.0
|
- 2.0.0
|
||||||
language: ruby
|
language: ruby
|
||||||
before_script: "gem install --no-ri --no-rdoc bundler"
|
before_script: 'gem install --no-ri --no-rdoc bundler'
|
||||||
script: 'bundle exec rake validate && bundle exec rake lint && SPEC_OPTS="--format documentation" bundle exec rake spec'
|
script: 'bundle exec rake validate && bundle exec rake lint && SPEC_OPTS="--format documentation" bundle exec rake spec'
|
||||||
gemfile: Gemfile
|
gemfile: Gemfile
|
||||||
|
2
Gemfile
2
Gemfile
@ -1,4 +1,4 @@
|
|||||||
source "https://rubygems.org"
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 3.3']
|
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 3.3']
|
||||||
gem 'puppet', puppetversion
|
gem 'puppet', puppetversion
|
||||||
|
2
Rakefile
2
Rakefile
@ -3,7 +3,7 @@ require 'puppet-lint/tasks/puppet-lint'
|
|||||||
PuppetLint.configuration.send('disable_80chars')
|
PuppetLint.configuration.send('disable_80chars')
|
||||||
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
|
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
|
||||||
|
|
||||||
desc "Run puppet in noop mode and check for syntax errors."
|
desc 'Run puppet in noop mode and check for syntax errors.'
|
||||||
task :validate do
|
task :validate do
|
||||||
Dir['manifests/**/*.pp'].each do |manifest|
|
Dir['manifests/**/*.pp'].each do |manifest|
|
||||||
sh "puppet parser validate --noop #{manifest}"
|
sh "puppet parser validate --noop #{manifest}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user