Revision: 68360
Updated Code
at January 12, 2015 13:54 by gterrill
Updated Code
begin
ShopifyAPI::Shop.current
rescue ActiveResource::ResourceNotFound
Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) appears to have gone bye bye"
shop.destroy
rescue ActiveResource::UnauthorizedAccess => e
Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) does not authorize us"
rescue ActiveResource::ForbiddenAccess => e
Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) is a forbidden garden"
rescue ActiveResource::Redirection
Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) bounced us"
end
Revision: 68359
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 12, 2015 13:48 by gterrill
Initial Code
begin
ShopifyAPI::Shop.current
rescue ActiveResource::ResourceNotFound
Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) appears to have gone bye bye"
shop.destroy
rescue ActiveResource::UnauthorizedAccess => e
Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) does not authorize us"
rescue ActiveResource::ForbiddenAccess => e
Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) is a forbidden garden"
rescue ActiveResource::Redirection
Rails.logger.info "Shop #{shop.id} (#{shop.subdomain}) bounced us"
end
Initial URL
Initial Description
Figure out shopify shop status
Initial Title
Figure out shopify shop status
Initial Tags
Initial Language
Ruby