我想一些耙任務添加到命名空間中的一對夫婦leves,但我不希望有縮進我的整個文件做將rake任務添加到名稱空間而不進行縮進?
namespace :one_descriptive_name do
namespace :sub_name do
# many tasks which all have to be 4 chars deep
end
namespace :another_sub_name do
# many more tasks. oh, my poor eyes
# and limited screen-width, woe is me!!
end
end
還有沒有其他的辦法把一個任務進入一個命名空間?