Module: Sekt::CLI::GetBottle

Included in:
Bottle, Recipe
Defined in:
lib/sekt/cli/get_bottle.rb

Instance Method Summary collapse

Instance Method Details

#get_bottle!(id) ⇒ Object



4
5
6
7
8
9
# File 'lib/sekt/cli/get_bottle.rb', line 4

def get_bottle!(id)
  @cellar ||= Cellar.new
  bottle = @cellar.get_bottle(id)
  raise "Failed to find bottle: #{id}" unless bottle
  return bottle
end