Sha256: e70a00f02d0004cb4d04a7e4b1c35b9814d1487942b6e7482b4bfe1d74793dad

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

require 'bundler'
require 'bundler/cli'
require 'thor'

module Bundler
  class CLI < Thor

    original_install_method = instance_method :install
    define_method :install do
      Talks.info 'Bunlde install started'
      original_install_method.bind(self).call
      Talks.info 'Bunlde install ended'
    end

    original_update_method = instance_method :update
    define_method :update do |*gems|
      Talks.info 'Bunlde update started'
      original_update_method.bind(self).call(*gems)
      Talks.info 'Bunlde update ended'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bundler-talks-0.0.3 lib/bundler-talks/patches.rb