# File lib/travis/cli/encrypt_file.rb, line 118
      def output_path_for(input_path)
        case input_path
        when '-'           then return '-'
        when /^(.+)\.enc$/ then return $1 if     decrypt?
        when /^(.+)\.dec$/ then return $1 unless decrypt?
        end

        if interactive? and input_path =~ /(\.enc|\.dec)$/
          exit 1 unless danger_zone? "File extension of input file is #{color($1, :info)}, are you sure that is correct?"
        end

        "#{input_path}.#{decrypt ? 'dec' : 'enc'}"
      end