Sha256: ef564895436b2f159ac1daaa94a165ca6b24c423492d4ad0e3a8d693d8b077c0
Contents?: true
Size: 1001 Bytes
Versions: 2
Compression:
Stored size: 1001 Bytes
Contents
require 'rails/generators' require 'rails/generators/rails/app/app_generator' require 'json' require 'active_support/core_ext/hash/indifferent_access' module MobileWorkflowCli class AppCleaner < Thor class_option :version, type: :boolean, aliases: "-v", desc: "Show version number and quit" class_option :help, type: :boolean, aliases: '-h', desc: "Show this help message and quit" class_option :deploy_heroku, type: :boolean, aliases: "-H", default: false, desc: "Create Heroku app" class_option :s3_storage, type: :boolean, default: false, desc: "Create an s3 backend for image upload and storage" class_option :aws_region, type: :string, default: 'us-east-1', desc: "Specify a region to create AWS resources in" desc "clean APP_NAME", "clean the app" def clean(app_name) `rm -rf #{app_name}` AwsBackend.new(app_name: app_name, region: options[:aws_region]).destroy HerokuBackend.new(app_name: app_name).destroy end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mobile_workflow_cli-0.1.6 | lib/mobile_workflow_cli/app_cleaner.rb |
mobile_workflow_cli-0.1.4 | lib/mobile_workflow_cli/app_cleaner.rb |