Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Rename and organise methods for clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoack committed May 16, 2016
1 parent 97354d3 commit 05ba44d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/pansophy_authenticator/configuration/configurator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ def build_configuration
end

def config_values
@config_values ||= from_env
@config_values ||= from_env_or_base
end

def from_env_or_base
FromEnv.new(base_config)
end

def base_config
return self if @configuration_path.nil?
from_file
from_file_or_base
end

def from_file
def from_file_or_base
FromFile.new(self)
end

def from_env
FromEnv.new(base_config)
end
end
end
end

0 comments on commit 05ba44d

Please sign in to comment.