Class: Bundler::Plumber::Task

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/bundler/plumber/task.rb

Instance Method Summary collapse

Constructor Details

#initializeTask

Initializes the task.



27
28
29
# File 'lib/bundler/plumber/task.rb', line 27

def initialize
  define
end

Instance Method Details

#defineObject (protected)

Defines the bundle:leak task.



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/bundler/plumber/task.rb', line 36

def define
  namespace :bundle do
    desc 'Updates the ruby-mem-advisory-db then runs bundle-leak'
    task :leak do
      require 'bundler/plumber/cli'
      %w(update check).each do |command|
        Bundler::Plumber::CLI.start [command]
      end
    end
  end
end