Sha256: 37440ade3c1407563136de09301c36c8f867feaec22fc372bbcbc655a58392bc

Contents?: true

Size: 463 Bytes

Versions: 15

Compression:

Stored size: 463 Bytes

Contents

desc "Add S3 storage to a Heroku app"
namespace :mw do
  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
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mobile_workflow-0.10.2 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.10.1 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.10.0 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.9.0 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.8.9 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.9 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.8 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.7 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.6 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.5 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.4 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.3 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.2 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.1 lib/mobile_workflow/tasks/s3.rake
mobile_workflow-0.7.0 lib/mobile_workflow/tasks/s3.rake