# File lib/heroku/command/base.rb, line 149 def extract_app if options[:app].is_a?(String) options[:app] elsif app_from_dir = extract_app_in_dir(Dir.pwd) app_from_dir else raise Heroku::Command::CommandFailed, "No app specified.\nRun this command from an app folder or specify which app to use with --app <app name>" end end