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

In dev, warn and exit if cable.yml and db yml are missing #12100

Merged
merged 1 commit into from
Oct 22, 2016

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Oct 21, 2016

bin/setup is responsible for automatically copying these files.
Since you could intentionally remove them, we'll just warn in bin/update.

Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

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

< joke > We should also warn people to have a config/database.yml</ joke >

@jrafanie
Copy link
Member Author

Good call @skateman, I'll add that.

bin/setup is responsible for automatically copying these files.
Since you could intentionally remove them, we'll just warn in bin/update.
@jrafanie jrafanie force-pushed the warn_on_missing_cable_yml branch from 797740a to 6851c70 Compare October 21, 2016 15:23
@jrafanie jrafanie changed the title Warn if missing the config/cable.yml In dev, warn and exit if cable.yml and db yml are missing Oct 21, 2016
chdir APP_ROOT do
# This script is a way to update your development environment automatically.
# Add necessary update steps to this file.
dev_warn_and_exit_if_missing('config/cable.yml', 'config/cable.yml.sample')
dev_warn_and_exit_if_missing('config/database.yml', 'config/database.pg.yml')
Copy link
Member Author

Choose a reason for hiding this comment

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

Who knows, it's easy enough to help fix issues before someone embarrasses themselves?

Copy link
Member

Choose a reason for hiding this comment

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

Fair

@jrafanie
Copy link
Member Author

Ok, @himdel @skateman updated. I let travis run this just to ensure I didn't break CI.

@miq-bot
Copy link
Member

miq-bot commented Oct 21, 2016

Checked commit jrafanie@6851c70 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
0 files checked, 0 offenses detected
Everything looks good. 🍪

@himdel
Copy link
Contributor

himdel commented Oct 22, 2016

Works just fine :) If we ever accumulate more than 2 checks, it may make sense to postpone dying until all the checks have carped, but until then.. :)

@jrafanie, @skateman since this is devel-only, I don't see a reason to euwe/yes this, do you?

@himdel himdel merged commit 743893b into ManageIQ:master Oct 22, 2016
@himdel himdel added this to the Sprint 48 Ending Oct 24, 2016 milestone Oct 22, 2016
@himdel himdel added the euwe/no label Oct 22, 2016
@jrafanie jrafanie deleted the warn_on_missing_cable_yml branch October 24, 2016 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants