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

- old
+ new

@@ -112,10 +112,16 @@ command_recipe.sort_by! {|item| File.dirname(item)} command << command_recipe.join puts TaskBase.hl.color(%!Run Itamae to \"#{bname}\"!, :red) run_list_noti = [] - command_recipe.each {|c_recipe| run_list_noti << c_recipe.split("/") [2]} + command_recipe.each { |c_recipe| + unless c_recipe.split("/")[4].split(".")[0] == 'default' + run_list_noti << c_recipe.split("/")[2] + "::#{c_recipe.split("/")[4].split(".")[0]}" + else + run_list_noti << c_recipe.split("/")[2] + end + } puts TaskBase.hl.color(%!Run List to \"#{run_list_noti.uniq.join(", ")}\"!, :green) puts TaskBase.hl.color(%!#{command}!, :white) begin st = system command rescue Exception => e