lib/osa/helpers/options.rb
# TODO: Decrypt the file here  using the given password. waiting OSE to see the encryption method
# Decrypts a given file if encrypted
#   The file is a YAML file contains two parts separated by ( *-----=-|-=-----* )
#   Security Groups and Server details respectively.
#
# @param file [String]
#   dump file path
# @param password [String]
#   decryption key of the encrypted file
#
# @return [Array <SecurityGroups, Servers>]
#
Decrypt the file here  using the given password. waiting OSE to see the encryption method
Decrypts a given file if encrypted
The file is a YAML file contains two parts separated by ( | )
Security Groups and Server details respectively.
Decrypt the file here using the given password . waiting OSE to see the encryption method Decrypts a given file if encrypted The file is a YAML file contains two parts separated by ( | ) Security Groups and Server details respectively .
def decrypt(file, password)
        file_content = open(file).read if password.nil?
        file_content = open(file).read if password
        file_content.split(OSA::Utils::SEPARATOR)
      end
def decrypt ( file , password ) file_content = open ( file ) . read if password . nil? file_content = open ( file ) . read if password file_content . split ( OSA :: Utils :: SEPARATOR ) end
TODO: Decrypt the file here  using the given password.
TODO : Decrypt the file here using the given password .
None
Array <SecurityGroups, Servers>
file
dump file path
dump file path
password
decryption key of the encrypted file
decryption key of the encrypted file