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

Issue #34 - Add rake task to remove existing seed files #44

Closed
wants to merge 2 commits into from
Closed

Issue #34 - Add rake task to remove existing seed files #44

wants to merge 2 commits into from

Conversation

laserchicken
Copy link

I didn't add any tests for that because it's mainly i/o.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.18%) when pulling 4b030f4 on laserchicken:purge_seed_files_rake_task into 59bc4de on vigetlabs:master.


def seed_filenames
seed_files_path = Rails.root.join('db', 'seeds', ENV['ENVIRONMENT'])
Dir.glob("#{seed_files_path}/*.{yml,yaml,json,csv}")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think seed files are limited to there extensions. I think it would be safe to list every file in that directory.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.18%) when pulling d5334bd on laserchicken:purge_seed_files_rake_task into 59bc4de on vigetlabs:master.

@ltk
Copy link
Contributor

ltk commented Oct 31, 2014

Moved to #48

@ltk ltk closed this Oct 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants