# File lib/rhc/commands/snapshot.rb, line 28
    def save(app)

      rest_app = find_app

      raise RHC::DeploymentsNotSupportedException.new if options.deployment && !rest_app.supports?("DEPLOY")

      filename = options.filepath ? options.filepath : "#{rest_app.name}.tar.gz"

      save_snapshot(rest_app, filename, options.deployment, options.ssh)

      0
    end