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

Make tools easier to run #15957

Merged
merged 1 commit into from
Sep 8, 2017
Merged

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Sep 8, 2017

Support users running these as an executable, a ruby script, or through
rails runner:

./tools/db_ping_remote.rb
ruby tools/db_ping_remote.rb
bin/rails r tools/db_ping_remote.rb

Add executable permission
Add shebang for ruby
Load rails automatically for tools that require rails
[skip ci]

Similar to #14169

Support users running these as an executable, a ruby script, or through
rails runner:

./tools/db_ping_remote.rb
ruby tools/db_ping_remote.rb
bin/rails r tools/db_ping_remote.rb

Add executable permission
Add shebang for ruby
Load rails automatically for tools that require rails
[skip ci]

Similar to ManageIQ#14169
@miq-bot
Copy link
Member

miq-bot commented Sep 8, 2017

Checked commit jrafanie@7deb5ac with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
45 files checked, 0 offenses detected
Everything looks fine. ⭐

@Fryguy
Copy link
Member

Fryguy commented Sep 8, 2017

Do all of these tools actually need to be run in a rails context?

Copy link
Member

@Fryguy Fryguy left a comment

Choose a reason for hiding this comment

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

Codewise LGTM...just waiting on answer to my question.

@jrafanie
Copy link
Member Author

jrafanie commented Sep 8, 2017

Do all of these tools actually need to be run in a rails context?

No, some of them, like the log_processing directoy do not require rails so I didn't add config/environment there.

@jdeubel
Copy link
Member

jdeubel commented Sep 8, 2017

Looks good @jrafanie

@Fryguy Fryguy merged commit ccece2a into ManageIQ:master Sep 8, 2017
@Fryguy Fryguy added this to the Sprint 69 Ending Sep 18, 2017 milestone Sep 8, 2017
@jrafanie jrafanie deleted the user_friendly_tools branch September 8, 2017 20:05
@jrafanie jrafanie mentioned this pull request Mar 4, 2020
3 tasks
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.

4 participants