public void AddOrUpdateProfile(DateTime start)
        {
            MultipleProfile multipleProfile = getMultipleProfile();

            multipleProfile.AddOrUpdateProfile(environment.oktaProfile, environment.awsRoleToAssume, start);

            using (var fileWriter = FileHelper.GetWriter(FileHelper.GetOktaDirectory(), "profiles"))
            {
                multipleProfile.Save(fileWriter);
            }
        }
Ejemplo n.º 2
0
 /**
  * Gets a FileWriter for the credentials file
  *
  * @return A {@link FileWriter} for the credentials file
  * @throws IOException
  */
 public static StreamWriter GetCredsWriter()
 {
     return(FileHelper.GetWriter(FileHelper.GetAwsDirectory(), "credentials"));
 }
Ejemplo n.º 3
0
 /**
  * Gets a FileWriter for the config file
  *
  * @return A {@link FileWriter} for the config file
  * @throws IOException
  */
 public StreamWriter GetConfigWriter()
 {
     return(FileHelper.GetWriter(FileHelper.GetAwsDirectory(), "config"));
 }