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

Update oss.rb #681

Merged
merged 4 commits into from
Jan 5, 2023
Merged

Update oss.rb #681

merged 4 commits into from
Jan 5, 2023

Conversation

brianlball
Copy link
Contributor

  • oscli_bundle to cmd

issue #680

+ oscli_bundle to cmd
@brianlball
Copy link
Contributor Author

still need to make some tests but should be good for a hot fix

@tijcolem
Copy link
Contributor

tijcolem commented Jan 4, 2023

@brianlball Nice! Yeah, if we can add an integration test that uses a custom gems with init script that would be great. I'll just wait for tests to complete and then merge in.

# syntax to explicitly unset a bunch of env vars is very different for windows
# Use the default shell to query for OpenStudio version. Not neccessary to unset these.
#unset_vars = Gem.win_platform? || ENV['OS'] == 'Windows_NT' ? 'set ' + Utility::Oss::ENV_VARS_TO_UNSET_FOR_OSCLI.join('= && set ') : 'unset ' + Utility::Oss::ENV_VARS_TO_UNSET_FOR_OSCLI.join(' && unset ')
oscli_cmd = "#{Utility::Oss.oscli_cmd} openstudio_version"
oscli_cmd = "#{Utility::Oss.oscli_cmd(Rails.logger).split.first} openstudio_version"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we make a new function oscli_cmd_no_bundle_args()?

@tijcolem tijcolem merged commit e7b8ea6 into develop Jan 5, 2023
@tijcolem tijcolem deleted the bundle-fix branch January 5, 2023 15:27
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.

2 participants