Skip to content

Commit

Permalink
add a disable_version_manifest accessor (#220)
Browse files Browse the repository at this point in the history
* add a disable_version_manifest accessor

* allow version manifests to be disabled

* remove an extra blank line to keep rubocop happy

* fix syntax
  • Loading branch information
chouquette authored Feb 20, 2025
1 parent 28fec93 commit f614b2c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lib/omnibus/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1443,8 +1443,10 @@ def build
# Install shipped sources in the sources/ folder
install_sources

write_json_manifest
write_text_manifest
unless @disable_version_manifest
write_json_manifest
write_text_manifest
end
unless @skip_healthcheck
HealthCheck.run!(self)
end
Expand Down Expand Up @@ -1626,6 +1628,16 @@ def skip_healthcheck(val)
end
end
expose :skip_healthcheck

def disable_version_manifest(val)
if val.nil?
@disable_version_manifest
else
@disable_version_manifest = val
end
end
expose :disable_version_manifest

#
# @!endgroup
# --------------------------------------------------
Expand Down

0 comments on commit f614b2c

Please sign in to comment.