method
extract_environment_from_path
v8.0.0 -
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 130
def extract_environment_from_path(path)
available_environments.find { |env| path.end_with?("#{env}.yml.enc") } || extract_custom_environment(path)
end