Skip to content

Commit 2548681

Browse files
committed
Make Vox Rake tasks conditional
This commit updates the Rakefile to only attempt to use Vox Rake tasks if the voxpupuli-acceptance gem is installed.
1 parent c00279f commit 2548681

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.sync.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ appveyor.yml:
5151
# We still use the Vox acceptance Rake task instead of Litmus
5252
Rakefile:
5353
requires:
54-
- voxpupuli/acceptance/rake
54+
- require: voxpupuli/acceptance/rake
55+
conditional: Gem.loaded_specs.key? 'voxpupuli-acceptance'

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require 'puppetlabs_spec_helper/rake_tasks'
66
require 'puppet-syntax/tasks/puppet-syntax'
77
require 'github_changelog_generator/task' if Gem.loaded_specs.key? 'github_changelog_generator'
88
require 'puppet-strings/tasks' if Gem.loaded_specs.key? 'puppet-strings'
9-
require 'voxpupuli/acceptance/rake'
9+
require 'voxpupuli/acceptance/rake' if Gem.loaded_specs.key? 'voxpupuli-acceptance'
1010

1111
def changelog_user
1212
return unless Rake.application.top_level_tasks.include? "changelog"

0 commit comments

Comments
 (0)