Exception: Berkshelf::NoAPISourcesDefined

Inherits:
BerkshelfError show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Instance Method Details

#to_sObject



496
497
498
499
500
501
502
503
# File 'lib/berkshelf/errors.rb', line 496

def to_s
  "Your Berksfile does not define any API sources! You must define " \
  "at least one source in order to download cookbooks. To add the " \
  "default Berkshelf API server, add the following code to the top of " \
  "your Berksfile:" \
  "\n\n" \
  "    source 'https://supermarket.chef.io'"
end