Skip to content

Commit

Permalink
Make Vox Rake tasks conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mhashizume committed Mar 4, 2024
1 parent 29b38d1 commit 6e837d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ Rakefile:
extra_disabled_lint_checks:
- puppet_url_without_modules
requires:
- voxpupuli/acceptance/rake
- require: voxpupuli/acceptance/rake
conditional: Gem.loaded_specs.key? 'voxpupuli-acceptance'
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-syntax/tasks/puppet-syntax'
require 'github_changelog_generator/task' if Gem.loaded_specs.key? 'github_changelog_generator'
require 'puppet-strings/tasks' if Gem.loaded_specs.key? 'puppet-strings'
require 'voxpupuli/acceptance/rake'
require 'voxpupuli/acceptance/rake' if Gem.loaded_specs.key? 'voxpupuli-acceptance'

def changelog_user
return unless Rake.application.top_level_tasks.include? "changelog"
Expand Down

0 comments on commit 6e837d0

Please sign in to comment.