/// <summary> /// Helper method to get the AWS Credentials from environment variables /// </summary> /// <param name="environment">The cake environment.</param> /// <returns>A new <see cref="SyncSettings"/> instance to be used in calls to the <see cref="IS3Manager"/>.</returns> public static SyncSettings CreateSyncSettings(this ICakeEnvironment environment) { if (environment == null) { throw new ArgumentNullException("environment"); } return(environment.SetSettings(new SyncSettings())); }