How to execute a command 'bundle install' with THOR interface.

Hi, all,
the question that likes the rails initializes a project, it will creates some file and directory, and runs the bundle install command at the end.
How can i do it with the interface of THOR, i know the rails dose it as the same approach.

Thanks in advance.