Class: Bundler::Plumber::Task
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Bundler::Plumber::Task
- Defined in:
- lib/bundler/plumber/task.rb
Instance Method Summary collapse
-
#define ⇒ Object
protected
Defines the
bundle:leak
task. -
#initialize ⇒ Task
constructor
Initializes the task.
Constructor Details
#initialize ⇒ Task
Initializes the task.
27 28 29 |
# File 'lib/bundler/plumber/task.rb', line 27 def initialize define end |
Instance Method Details
#define ⇒ Object (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 |