def add_deployment(hash, &callback)
      hash[:enabled] = hash.key?(:enabled) ? hash[:enabled] : true
      hash[:force_deploy] = hash.key?(:force_deploy) ? hash[:force_deploy] : false
      required = %i[resource_id feed_id destination_file_name binary_content]
      check_pre_conditions hash, required, &callback

      operation_payload = prepare_payload_hash([:binary_content], hash)
      invoke_operation_helper(operation_payload, 'DeployApplication', hash[:binary_content], &callback)
    end
def add_deployment(hash, &callback)
      hash[:enabled] = hash.key?(:enabled) ? hash[:enabled] : true
      hash[:force_deploy] = hash.key?(:force_deploy) ? hash[:force_deploy] : false
      required = %i[resource_id feed_id destination_file_name binary_content]
      check_pre_conditions hash, required, &callback

      operation_payload = prepare_payload_hash([:binary_content], hash)
      invoke_operation_helper(operation_payload, 'DeployApplication', hash[:binary_content], &callback)
    end
Deploys an archive file into WildFly

 @param [Hash] hash Arguments for deployment
 @option hash [String]  :resource_id ID of the WildFly server into which we deploy
                        or of the domain controller if we deploy into a server group (in case of domain mode)
 @option hash [String]  :feed_id feed containing this resource
 @option hash [String]  :destination_file_name resulting file name
 @option hash [String]  :binary_content binary content representing the war file
 @option hash [String]  :enabled whether the deployment should be enabled immediately, or not (default = true)
 @option hash [String]  :force_deploy whether to replace existing content or not (default = false)
 @option hash [String]  :server_groups comma-separated list of server groups for the operation (default = ignored)

 @param callback [Block] callback that is run after the operation is done