Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
PowerStencil is the Swiss-army knife templating workflow for developers and ops.
Releases
is a PowerStencil plugin.
See official website.
PowerStencil
projectsA PowerStencil
plugin can be used in the context of a PowerStencil
project and bring extra features to a standard project.
If you don't know what PowerStencil
is made for, you may read the documentation first.
Features provided by a plugin can be:
power_stencil
command-line.power_stencil shell
.PowerStencil
projectsTo use this plugin within your PowerStencil
project, you need to:
PowerStencil
project :wink:..ps_project/versioned-config.yaml
file).In this yaml configuration file, you just have to add a new entry in the :project_plugins
array or simply create it if it is not yet existing:
:project_plugins:
- psplugin_releases
If this plugin is not already present on your machine, you may have to download it:
$ power_stencil plugin --install
And then you may see information about the plugin by running:
power_stencil info
in the plugins section.power_stencil plugin --list -v
The goal of this plugin is to be able to build anything you can already build within your PowerStencil
project but in the context of a release
.
You can then use the information provided by the release
within your build templates.
There is no external dependency for this plugin.
This plugin provides the following features:
This does not bring any new subcommand. It just adds an option to the power_stencil build
subcommand:
--release
which expects a entity ID of the type release
to be provided.
For example:
$ power_stencil build a_buildable_entity_type/an_entity --release release/my_release
power_stencil shell
This plugin brings release-related methods to the PowerStencil
DSL, available in both templates and in the power_stencil shell
:
target_release(raise_error: true)
returns the release passed on the command line to the build
sub-command, or nil
if no release was provided on the command line (or raise an error).target_release?
will simply say if a release was provided on the command-line, without raising any error.release
The idea is that a release
has a version
(following semantic versioning principles) and a content
.
content
is a hash which keys are entities and values are versions (following semantic versioning principles). content
represents obviously the content of a release
.
On top of this it brings:
bump(level: :patch)
will bump the version of the release, following semantic versioning rules. :patch
is the default, but could be :minor
, or :major
(see PowerStencil::Utils::SemanticVersion::MANDATORY_LEVELS
).bump_content(*content_key, content_increment: :patch, release_increment: :patch)
, a convenient methods to manage the version of each of the content entities version as well as the global release version. By default, it will bump the versions of all entities "passed" to the method (ie found from content_key
), and them bump the version of the release itself.
content_key
, can be an entity ID, a type and a name, or even an entity or an array of entities.content_increment
and release_increment
define how to increase versions.parent
release.children
releases.:information_source: Use release
to keep consistency between an arbitrary number of entities which may have version requirements on each others.
Bug reports and pull requests are welcome on Gitlab at https://gitlab.com/tools4devops/psplugins/releases/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the PowerStencil project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that psplugin_releases demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.