diff --git a/.travis.yml b/.travis.yml index c288e0d..be395a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,6 @@ rvm: - 1.9.3 - 2.0.0 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' gemfile: Gemfile diff --git a/Gemfile b/Gemfile index 0a648da..e7a7d4b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -source "https://rubygems.org" +source 'https://rubygems.org' puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 3.3'] gem 'puppet', puppetversion diff --git a/Rakefile b/Rakefile index d5ccdb0..dfa83c4 100644 --- a/Rakefile +++ b/Rakefile @@ -3,7 +3,7 @@ require 'puppet-lint/tasks/puppet-lint' PuppetLint.configuration.send('disable_80chars') 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 Dir['manifests/**/*.pp'].each do |manifest| sh "puppet parser validate --noop #{manifest}"