Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'create' boolean option to AppConfig.setup!() #14

Open
Oshuma opened this issue Aug 29, 2012 · 3 comments
Open

'create' boolean option to AppConfig.setup!() #14

Oshuma opened this issue Aug 29, 2012 · 3 comments
Assignees
Labels

Comments

@Oshuma
Copy link
Owner

Oshuma commented Aug 29, 2012

Using a create: true storage option when calling AppConfig.setup!() creates (or writes to) the given storage (YAML file, Mongo collection, etc.).

@DSIW
Copy link

DSIW commented Sep 2, 2012

Does it create the given storage at the first time (in setup) or does it save each change?

@Oshuma
Copy link
Owner Author

Oshuma commented Sep 3, 2012

Hasn't been implemented yet, but it will probably work like this: After AppConfig.setup() is called and completed, it will write the file once, then you must call AppConfig.save! in order to write to disk. I'd advise against writing on each change, as that may not always be the desired behavior and might lead to hammering the disk (if you assign a lot of config vars).

@DSIW
Copy link

DSIW commented Sep 15, 2012

Does it make sense to create the database? You have to start the MongoDB deamon first and it will create the specified directory if it doesn't exist.

This is my opinion.

@DSIW DSIW mentioned this issue Sep 15, 2012
@ghost ghost assigned Oshuma May 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants