Created
May 31, 2012 07:19
-
-
Save zipkid/2841626 to your computer and use it in GitHub Desktop.
Rake - puppet-lint problem (OS X)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android18:puppet-modules zipkid$ rake lint | |
(in /Volumes/Source/Eclipse-workspace/Super-Visions/puppet-modules) | |
rake aborted! | |
Cannot load puppet-lint, please install gem : # gem install puppet-lint | |
/Volumes/Source/Eclipse-workspace/Super-Visions/puppet-modules/Rakefile:7 | |
(See full trace by running task with --trace) | |
android18:puppet-modules zipkid$ cat Rakefile | |
# Rakefile | |
desc "Run puppet-lint." | |
task :lint do |t, args| | |
begin | |
require 'puppet-lint' | |
rescue LoadError | |
fail "Cannot load puppet-lint, please install gem : # gem install puppet-lint" | |
end | |
PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" | |
#PuppetLint.configuration.send("disable_80chars") | |
PuppetLint.configuration.disable_80chars | |
linter = PuppetLint.new | |
files = File.join('./', "**", "*.pp") | |
Dir.glob(files).each do |puppet_file| | |
puts "Evaluating #{puppet_file}" | |
linter.file = puppet_file | |
linter.run | |
end | |
endandroid18:puppet-modules zipkid$ irb | |
>> require 'puppet-lint' | |
=> true | |
>> PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" | |
=> "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}" | |
>> PuppetLint.configuration.disable_80chars | |
=> true | |
>> linter = PuppetLint.new | |
=> #<PuppetLint:0x103e88628 @fileinfo={:path=>""}, @statistics={:error=>0, :warning=>0}, @data=nil> | |
>> files = File.join('./', "**", "*.pp") | |
=> "./**/*.pp" | |
>> Dir.glob(files).each do |puppet_file| | |
?> puts "Evaluating #{puppet_file}" | |
>> linter.file = puppet_file | |
>> linter.run | |
>> end | |
Evaluating ./apache/manifests/config.pp | |
Evaluating ./apache/manifests/data.pp | |
Evaluating ./apache/manifests/htpasswd.pp | |
... | |
android18:puppet-modules zipkid$ rake lint --trace | |
(in /Volumes/Source/Eclipse-workspace/Super-Visions/puppet-modules) | |
** Invoke lint (first_time) | |
** Execute lint | |
rake aborted! | |
Cannot load puppet-lint, please install gem : # gem install puppet-lint | |
/Volumes/Source/Eclipse-workspace/Super-Visions/puppet-modules/Rakefile:7 | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:636:in `call' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:636:in `execute' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:631:in `each' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:631:in `execute' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:583:in `invoke' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2029:in `top_level' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2029:in `each' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2029:in `top_level' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2023:in `top_level' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2001:in `run' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling' | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:1998:in `run' | |
/usr/bin/rake:31 | |
android18:puppet-modules zipkid$ ls -al /Library/Ruby/Gems/1.8/gems/puppet-lint-0.1.13/ | |
total 56 | |
drwxr-xr-x 11 root wheel 374 May 31 09:09 . | |
drwxr-xr-x 110 root wheel 3740 May 31 09:09 .. | |
-rw-r--r-- 1 root wheel 412 May 31 09:09 .travis.yml | |
-rw-r--r-- 1 root wheel 168 May 31 09:09 Gemfile | |
-rw-r--r-- 1 root wheel 1054 May 31 09:09 LICENSE | |
-rw-r--r-- 1 root wheel 7512 May 31 09:09 README.md | |
-rw-r--r-- 1 root wheel 590 May 31 09:09 Rakefile | |
drwxr-xr-x 3 root wheel 102 May 31 09:09 bin | |
drwxr-xr-x 4 root wheel 136 May 31 09:09 lib | |
-rw-r--r-- 1 root wheel 1462 May 31 09:09 puppet-lint.gemspec | |
drwxr-xr-x 4 root wheel 136 May 31 09:09 spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment