Class: HandsomeFencer::CircleCI::ObfuscatedEnvFilesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/handsome_fencer/circle_c_i/obfuscated_env_files_generator.rb

Instance Method Summary collapse

Instance Method Details

#obfuscate_env_filesObject



12
13
14
15
16
17
18
# File 'lib/generators/handsome_fencer/circle_c_i/obfuscated_env_files_generator.rb', line 12

def obfuscate_env_files

  environment = options[:environment]

  @cipher = HandsomeFencer::CircleCI::Crypto.new(dkfile: environment)
  @cipher.obfuscate('.circleci', "#{environment}.env")
end