Class: Ruby::Bundler

Inherits:
Object
  • Object
show all
Defined in:
lib/scripts/ruby/bundler.rb

Instance Method Summary collapse

Instance Method Details

#runObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/scripts/ruby/bundler.rb', line 3

def run
  unless installed?("bundler")
    command("gem", "install", "bundler", "--no-ri", "--no-rdoc")
  end

  install_path = env_fetch("BUNDLER_INSTALL_PATH", "vendor")

  unless test_command?("bundler", "check")
    command("bundler", "install", "--path", install_path)
  end
end