Sha256: 60f34400b2811e07cc162bacbe641b3b7c4b4f242adf513c47f760557815cc30
Contents?: true
Size: 581 Bytes
Versions: 6
Compression:
Stored size: 581 Bytes
Contents
module JellyfishAws class ProvidersController < JellyfishAws::ApplicationController after_action :verify_authorized def ec2_flavors authorize :aws render json: provider.ec2_flavors end def ec2_images authorize :aws render json: provider.ec2_images end def subnets authorize :aws render json: provider.subnets end def availability_zones authorize :aws render json: provider.availability_zones end private def provider @provider ||= Provider.find params[:id] end end end
Version data entries
6 entries across 6 versions & 1 rubygems