Created
March 25, 2015 10:49
-
-
Save Zhann/40d34357abc364b8aac3 to your computer and use it in GitHub Desktop.
recipe compile error
This file contains 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
# sock::default recipe | |
chef_gem 'rest-client' | |
# libraries/sock.rb | |
class Chef::Recipe::Sock | |
require 'rest_client' | |
#..... | |
end | |
# error | |
# Compiling Cookbooks... | |
# | |
# ================================================================================ | |
# Recipe Compile Error in /tmp/kitchen/cache/cookbooks/sock/libraries/sock.rb | |
# ================================================================================ | |
# | |
# LoadError | |
# --------- | |
# cannot load such file -- rest_client | |
# | |
# Cookbook Trace: | |
# --------------- | |
# /tmp/kitchen/cache/cookbooks/sock/libraries/sock.rb:2:in `<class:Sock>' | |
# /tmp/kitchen/cache/cookbooks/sock/libraries/sock.rb:1:in `<top (required)>' | |
# | |
# Relevant File Content: | |
# ---------------------- | |
# /tmp/kitchen/cache/cookbooks/sock/libraries/sock.rb: | |
# | |
# 1: class Chef::Recipe::Sock | |
# 2>> require 'rest_client' | |
# 3: attr_accessor :user, :node, :url | |
# 4: attr_writer :password | |
# 5: | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment