Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

OpenStudio standards fetch latest git commit

asked 2020-12-07 15:50:35 -0500

antonszilasi's avatar

updated 2020-12-07 15:51:50 -0500

I am running OpenStudio-standards on the OS-server and I am always pulling the latest version of OpenStudio-standards from master branch through an initialization script.

I am able to use the following code to document which version of OpenStudio standards is being used.

OpenstudioStandards::VERSION

However this doesnt tell the entire story as the version of OpenStudio-standards may have commits ontop of the latest release. (At the time of writing there are)

I am wondering if there a way I can get the actual commit of the version of openstudio-standards that I am using?

edit retag flag offensive close merge delete

Comments

@mdahlhausen do you have any suggestions here?

antonszilasi's avatar antonszilasi  ( 2020-12-10 14:28:04 -0500 )edit

this is not easily done unless you request a specific commit to download

mdahlhausen's avatar mdahlhausen  ( 2020-12-10 15:58:36 -0500 )edit

I think we need more information about how you're currently using OpenStudio Standards, i.e. local, remote, container, etc. My first thought is to use the GitHub API to fetch/pull the latest commit from a specific branch.

MatthewSteen's avatar MatthewSteen  ( 2020-12-10 16:32:44 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-12-10 16:54:39 -0500

The initialization script is being used to change the gems that the OS CLI uses in OS Server. The gems that are being used can be found at /var/oscli/Gemfile.lock in any of the worker containers (ssh into any of the worker containers).

Note that these gems are different than what the Server uses which show up on the Admin page of the Server UI.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 2020-12-07 15:50:35 -0500

Seen: 166 times

Last updated: Dec 10 '20