Sha256: e4b4d5a502d194b527f3c3c3339dd69b4e72d7efbe3e451a529e250744c6be5a
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
#!/usr/bin/env ruby require_relative "../lib/mobile_workflow_cli/aws_backend" require_relative "../lib/mobile_workflow_cli/heroku_backend" # Byebug for dev begin require 'byebug' rescue LoadError end if ARGV.count < 2 || ['-h', '--help'].include?(ARGV[0]) puts "USAGE: mwf_s3 <create|destroy|> <App name>" exit 0 elsif ARGV.count == 2 app_name = ARGV[1] aws = AwsBackend.new(app_name: app_name, region: 'us-east-1') if ARGV[0] == 'create' aws.create heroku = HerokuBackend.new(app_name: app_name) heroku.configure_activestorage aws.create_topic_subscription(heroku.notifications_endpoint) aws.put_env elsif ARGV[0] == 'destroy' aws.destroy end exit 0 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mobile_workflow_cli-0.1.7 | bin/mwf_s3 |