Coke attended San Joaquin Delta College. He was selected by the Florida Marlins in the 49th Round (1450th overall) of the 2001 Major League Baseball Draft, but didn't sign. He was drafted by the Yankees in the 26th Round (786th overall) of the 2002 Major League Baseball Draft, and did sign.
He made his Double-A debut with the Trenton Thunder in 2008, going 9-4 with a 2.54 ERA in 23 games (20 starts). Later that year in Triple-A with the Scranton/Wilkes-Barre Yankees, he pitched in 13 games (One start) and went 2-2 with a 4.67 ERA. He made his major league debut on September 1, 2008, for the Yankees against the Detroit Tigers with a scoreless inning and strikeouts of Curtis Granderson and Miguel Cabrera.
Coke was traded to the Detroit Tigers in a 3-team trade, the Tigers got Coke and Minor Leaguer Austin Jackson from the Yankees, Max Scherzer, and Daniel Schlereth from the Arizona Diamondbacks. The Yankees got Curtis Granderson from the Tigers. The Diamondbacks got Edwin Jackson.