Sha256: 94aa3849289bbb78aebba261039234fc80738c6e843a334637815421d7ac3257
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 Bytes
Contents
desc "Add S3 storage to a Heroku app" task add_heroku_s3_storage: :environment do require 'mobile_workflow/cli' app_name = ENV['APP_NAME'] aws_region = ENV['AWS_REGION'] || 'us-east-1' aws = MobileWorkflow::Cli::AwsBackend.new(app_name: app_name, region: aws_region) heroku = MobileWorkflow::Cli::HerokuBackend.new(app_name: app_name) aws.create aws.create_topic_subscription(heroku.notifications_endpoint) end
Version data entries
2 entries across 2 versions & 1 rubygems