Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Ruby file permissions #102

Closed
jhoffner opened this issue Aug 22, 2014 · 2 comments
Closed

Ruby file permissions #102

jhoffner opened this issue Aug 22, 2014 · 2 comments
Labels

Comments

@jhoffner
Copy link
Member

require 'yaml/store'
store = YAML::Store.new 'candy.yml'

is failing due to file access error.

@jhoffner jhoffner added the bug label Aug 22, 2014
@jhoffner jhoffner changed the title Ruby File permissions Ruby file permissions Aug 22, 2014
@xcthulhu
Copy link
Contributor

This appears to be due to the fact that in the Dockerfile, we have WORKDIR /codewars but codewarrior doesn't have permission to write there (it's owned by root).

I would suggest the following fix:

require 'yaml/store'
store = YAML::Store.new '/tmp/candy.yml'

@xcthulhu
Copy link
Contributor

xcthulhu commented Sep 3, 2014

I'm going to close this, if that's alright.

@xcthulhu xcthulhu closed this as completed Sep 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants