class ItamaeSpec::Task::ServerspecTask
Constants
- ChangeTargetError
- LoadSpecError
Public Instance Methods
list_recipe_filepath(run_list)
click to toggle source
# File lib/itamae-spec/task/serverspec_task.rb, line 9 def list_recipe_filepath(run_list) recipes = [] run_list.each do |recipe| target_list = Dir.glob("cookbooks/#{recipe.keys.join}/spec/#{recipe.values.join}_spec.rb") raise LoadSpecError, "#{recipe.to_a.join('::')} cookbook or spec does not exist." if target_list.empty? target_list.each do |target| recipes << " #{target}" end end recipes end