lint and removed git dependency

Updated syntax to follow foodcritic suggestions
removed git cookbook dependency as git is now a built in resources.