Class: Bosh::AwsCloud::StemcellFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud/aws/stemcell_finder.rb

Class Method Summary collapse

Class Method Details

.find_by_region_and_id(region, id) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/cloud/aws/stemcell_finder.rb', line 6

def self.find_by_region_and_id(region, id)
  if id =~ / light$/
    LightStemcell.new(Stemcell.find(region, id[0...-6]), Bosh::Clouds::Config.logger)
  else
    Stemcell.find(region, id)
  end
end