Class: Dotenvious::MismatchedVariableFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/dotenvious/mismatched_variable_finder.rb

Class Method Summary collapse

Class Method Details

.mismatched_varsObject



7
8
9
10
11
# File 'lib/dotenvious/mismatched_variable_finder.rb', line 7

def self.mismatched_vars
  keys.select do |key|
    ENV_EXAMPLE.has_key?(key) && ENV_EXAMPLE[key] != ENV[key]
  end
end

.mismatched_vars?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/dotenvious/mismatched_variable_finder.rb', line 3

def self.mismatched_vars?
  mismatched_vars.any?
end