class Bosh::AwsCloud::StemcellFinder

Public Class Methods

find_by_region_and_id(region, id) click to toggle source
# 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