class Rails::Command::CredentialsCommand
def extract_environment_from_path(path)
def extract_environment_from_path(path) available_environments.find { |env| path.include? env } if path.end_with?(".yml.enc") end
def extract_environment_from_path(path) available_environments.find { |env| path.include? env } if path.end_with?(".yml.enc") end