method
extract_environment_from_path
v6.1.3.1 -
Show latest stable
- Class:
Rails::Command::CredentialsCommand
extract_environment_from_path(path)private
No documentation available.
# File railties/lib/rails/commands/credentials/credentials_command.rb, line 110
def extract_environment_from_path(path)
available_environments.find { |env| path.include? env } if path.end_with?(".yml.enc")
end