Method: Berkshelf::Source#default?

Defined in:
lib/berkshelf/source.rb

#default?true, false

Determine if this source is a “default” source, as defined in the Berksfile.

Returns:

  • (true, false)

    true if this a default source, false otherwise



127
128
129
# File 'lib/berkshelf/source.rb', line 127

def default?
  @default_ ||= uri.host == URI.parse(Berksfile::DEFAULT_API_URL).host
end