Sha256: c912483f1033b05cf940cf3b19f1d56389355c6f27ace520b0d253b6d34baced

Contents?: true

Size: 515 Bytes

Versions: 15

Compression:

Stored size: 515 Bytes

Contents

require 'handsome_fencer/crypto'

module Roro

  class CLI < Thor

    include Thor::Actions
    include HandsomeFencer::Crypto

    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|
        HandsomeFencer::Crypto.obfuscate(environment, 'docker')
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
roro-0.3.6 lib/roro/cli/obfuscate.rb
roro-0.3.5 lib/roro/cli/obfuscate.rb
roro-0.3.4 lib/roro/cli/obfuscate.rb
roro-0.3.2 lib/roro/cli/obfuscate.rb
roro-0.3.1 lib/roro/cli/obfuscate.rb
roro-0.3.0 lib/roro/cli/obfuscate.rb
roro-0.2.5 lib/roro/cli/obfuscate.rb
roro-0.2.4 lib/roro/cli/obfuscate.rb
roro-0.2.2 lib/roro/cli/obfuscate.rb
roro-0.2.1 lib/roro/cli/obfuscate.rb
roro-0.1.8 lib/roro/cli/obfuscate.rb
roro-0.1.6 lib/roro/cli/obfuscate.rb
roro-0.1.5 lib/roro/cli/obfuscate.rb
roro-0.1.3 lib/roro/cli/obfuscate.rb
roro-0.1.1 lib/roro/cli/obfuscate.rb