lib/itamae-mitsurin/mitsurin/serverspec_task.rb in itamae-mitsurin-0.24 vs lib/itamae-mitsurin/mitsurin/serverspec_task.rb in itamae-mitsurin-0.26

- old
+ new

@@ -70,10 +70,16 @@ end spec_pattern.sort_by! {|item| File.dirname(item)} specs << spec_pattern.join run_list_noti = [] - spec_pattern.each {|c_spec| run_list_noti << c_spec.split("/") [2]} + spec_pattern.each { |c_spec| + unless c_spec.split("/")[4].split(".")[0] == 'default' + run_list_noti << c_spec.split("/")[2] + "::#{c_spec.split("/")[4].split(".")[0]}" + else + run_list_noti << c_spec.split("/")[2] + end + } puts TaskBase.hl.color(%!Run Serverspec to \"#{node_name}\"!, :red) puts TaskBase.hl.color(%!Run List to \"#{run_list_noti.uniq.join(", ")}\"!, :green) st = system specs exit 1 unless st end