lib/itamae-mitsurin/mitsurin/serverspec_task.rb in itamae-mitsurin-0.27 vs lib/itamae-mitsurin/mitsurin/serverspec_task.rb in itamae-mitsurin-0.28
- old
+ new
@@ -71,11 +71,11 @@
spec_pattern.sort_by! {|item| File.dirname(item)}
specs << spec_pattern.join
run_list_noti = []
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]}"
+ unless c_spec.split("/")[4].split(".")[0] == 'default_spec'
+ run_list_noti << c_spec.split("/")[2] + "::#{c_spec.split("/")[4].split(".")[0].split("_spec")[0]}"
else
run_list_noti << c_spec.split("/")[2]
end
}
puts TaskBase.hl.color(%!Run Serverspec to \"#{node_name}\"!, :red)