Class: MobileWorkflowCli::AppCleaner

Inherits:
Thor
  • Object
show all
Defined in:
lib/mobile_workflow_cli/app_cleaner.rb

Instance Method Summary collapse

Instance Method Details

#clean(app_name) ⇒ Object



18
19
20
21
22
# File 'lib/mobile_workflow_cli/app_cleaner.rb', line 18

def clean(app_name)
  `rm -rf #{app_name}`
  AwsBackend.new(app_name: app_name, region: options[:aws_region]).destroy if options[:s3_storage]
  HerokuBackend.new(app_name: app_name).destroy if options[:heroku]
end