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

Ensure :noop sources are always treated as fetchable #200

Merged
merged 3 commits into from
Jun 10, 2018

Conversation

tomeon
Copy link
Contributor

@tomeon tomeon commented Jun 6, 2018

Corrects an issue introduced by yours truly in 8a710db8. The :noop source handler should be considered :fetchable? regardless of whether a non-nil, non-empty URI was provided as the first argument to the Recipe#source method. Otherwise, much of the recipe-building code won't run.

  * SourceHandler delegates to SourceHandler::*
  * SourceHandler::* delegates to Source, except for the :noop handler
    which just returns `true`
Copy link
Owner

@bernd bernd left a comment

Choose a reason for hiding this comment

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

Thank you!

@bernd bernd merged commit 038be89 into bernd:master Jun 10, 2018
@tomeon tomeon deleted the noop-source_handler-always-fetchable branch June 11, 2018 11:43
@madwort madwort mentioned this pull request May 3, 2019
bernd added a commit that referenced this pull request Jun 1, 2019
Changes:

* Use factor defaults for `platform` and `target` values. (FooBarQuaxx / #189)
* Add `:username` and `:password` parameters to the SVN source handler. (tomeon / #191)
* Add `Recipe#extract` method to allow custom extraction logic.
* Fix tmux location in getting started guide. (cvhbsk / #195)
* Use RPM target for SLES platform. (FooBarQuaxx / #198)
* Add `targets` block for target specific setting in recipe. (FooBarQuaxx / #199)
* Ensure `:noop` sources are always treated as fetchable. (tomeon / #200)
* Allow usage of newer puppet versions. (lukasz-e / #201)
* Add sha512 checksum support. (b00ga / #202)
* Remove duplicate require. (FooBarQuaxx / #204)
* Automatically gunzip gzipped patch files. (davewongillies / #208)
* Add a golang util. (davewongillies / #209)
suledani97 pushed a commit to realCity/fpm-cookery that referenced this pull request Jul 30, 2020
* spec/source_handler_spec.rb: assert that :noop source handler is always fetchable

* source_handler.rb: change fetchable? delegation structure

  * SourceHandler delegates to SourceHandler::*
  * SourceHandler::* delegates to Source, except for the :noop handler
    which just returns `true`

* packager.rb: correct end-of-block comment
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