Sha256: 57b574a98903457edb2ba7fce485f73d98a9fa7cc7515e25e326972f9e4849ca

Contents?: true

Size: 549 Bytes

Versions: 6

Compression:

Stored size: 549 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 staging 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

6 entries across 6 versions & 1 rubygems

Version Path
handsome_fencer-circle_c_i-0.1.44 lib/handsome_fencer/circle_c_i/cli/obfuscate.rb
handsome_fencer-circle_c_i-0.1.43 lib/handsome_fencer/circle_c_i/cli/obfuscate.rb
handsome_fencer-circle_c_i-0.1.42 lib/handsome_fencer/circle_c_i/cli/obfuscate.rb
handsome_fencer-circle_c_i-0.1.41 lib/handsome_fencer/circle_c_i/cli/obfuscate.rb
handsome_fencer-circle_c_i-0.1.40 lib/handsome_fencer/circle_c_i/cli/obfuscate.rb
handsome_fencer-circle_c_i-0.1.39 lib/handsome_fencer/circle_c_i/cli/obfuscate.rb