Class: Capistrano::Rbenv::SetupBundler

Inherits:
Plugin
  • Object
show all
Defined in:
lib/capistrano/rbenv/setup_bundler.rb

Instance Method Summary collapse

Instance Method Details

#define_tasksObject



3
4
5
# File 'lib/capistrano/rbenv/setup_bundler.rb', line 3

def define_tasks
  eval_rakefile File.expand_path('../tasks/setup_bundler.rake', __dir__)
end

#register_hooksObject



7
8
9
# File 'lib/capistrano/rbenv/setup_bundler.rb', line 7

def register_hooks
  after 'rbenv:install_ruby', 'rbenv:install_bundler'
end

#set_defaultsObject



11
12
13
14
# File 'lib/capistrano/rbenv/setup_bundler.rb', line 11

def set_defaults
  # Set bundler version to use/install
  set_if_empty :rbenv_bundler, '2.1.4'
end