def stage(to_env = 'test', sites = nil, email_site_status = false, skip_gardener = false)
      raise InvalidApiVersion, staging_versions unless staging_versions.include? 1

      payload = { 'to_env' => to_env, 'sites' => sites,
                  'detailed_status' => email_site_status,
                  'skip_gardener' => skip_gardener }.to_json
      @conn.post('/api/v1/stage', payload)
    end
def stage(to_env = 'test', sites = nil, email_site_status = false, skip_gardener = false)
      raise InvalidApiVersion, staging_versions unless staging_versions.include? 1

      payload = { 'to_env' => to_env, 'sites' => sites,
                  'detailed_status' => email_site_status,
                  'skip_gardener' => skip_gardener }.to_json
      @conn.post('/api/v1/stage', payload)
    end
@param [SFRest::Connection] conn
 Stage a site
 @param [String] to_env the name of of target env. defaults to test
 @param [Array] sites Array of site nids to stage
 @param [Boolean] email_site_status send an email about the staging status of each site
 @param [Boolean] skip_gardener skip staging the gardener and only stage the sites

 @return [Integer] Id of the staging task created.