Finished new ruby task api

Change-Id: I54871106b1786b204566bdd67a3be0872703ca19