Class: HandsomeFencer::CircleCI::ExposedEnvFilesGenerator

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

Instance Method Summary collapse

Instance Method Details

#expose_env_filesObject



11
12
13
14
15
# File 'lib/generators/handsome_fencer/circle_c_i/exposed_env_files_generator.rb', line 11

def expose_env_files
  environment = options[:environment]
  @cipher = HandsomeFencer::CircleCI::Crypto.new(dkfile: environment)
  @cipher.expose('.circleci', "#{environment}.env.enc")
end