Sha256: b843f9faf2d843e66df2e42a11ca499e62e89946be41c90c457b1afbd8fe2812

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

module HandsomeFencer
  module CircleCI
    class CLI < Thor

      desc "obfuscate", "obfuscates any files matching the pattern ./docker/**/*.env"

      def obfuscate(*args)

        default_environments = %w[circleci development production]
        environments = args.first ? args.first : default_environments
        environments.each do |environment|
          @cipher = HandsomeFencer::CircleCI::Crypto.new(environment: environment)
          @cipher.obfuscate('docker', "#{environment}.env")
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
handsome_fencer-circle_c_i-0.1.38 lib/handsome_fencer/circle_c_i/cli/obfuscate.rb