Fix rubocop offenses
squash get_cred function into process