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


447
448
449
450
451
452
453
454
# File 'lib/berkshelf/errors.rb', line 447

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