require 'bundler' require 'bundler/cli' require 'thor' module Bundler class CLI < Thor original_install_method = instance_method :install define_method :install do Talks.info 'Bundle install started' original_install_method.bind(self).call Talks.info 'Bundle install ended' end original_update_method = instance_method :update define_method :update do |*gems| Talks.info 'Bundle update started' original_update_method.bind(self).call(*gems) Talks.info 'Bundle update ended' end original_exec_method = instance_method :exec define_method :exec do |*args| Talks.info 'Bundle exec started' original_exec_method.bind(self).call(*args) Talks.info 'Bundle exec ended' end end end