First time here? Check our help page!
1

OpenStudio standards fetch latest git commit

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?

antonszilasi's avatar
1.5k
antonszilasi
asked 2020-12-07 15:50:35 -0500, updated 2020-12-07 15:51:50 -0500
edit flag offensive 0 remove flag 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
add a comment see more comments

1 Answer

2

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.

BrianLBall's avatar
2k
BrianLBall
answered 2020-12-10 16:54:39 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments