Class: Homebrew::DevCmd::InstallBundlerGems

Inherits:
AbstractCommand show all
Defined in:
dev-cmd/install-bundler-gems.rb

Instance Attribute Summary

Attributes inherited from AbstractCommand

#args

Instance Method Summary collapse

Methods inherited from AbstractCommand

command, command_name, #initialize, parser

Constructor Details

This class inherits a constructor from Homebrew::AbstractCommand

Instance Method Details

#runvoid

This method returns an undefined value.



26
27
28
29
30
31
32
33
34
35
36
# File 'dev-cmd/install-bundler-gems.rb', line 26

def run
  groups = args.groups || args.add_groups || []

  if groups.delete("all")
    groups |= Homebrew.valid_gem_groups
  elsif args.groups # if we have been asked to replace
    Homebrew.forget_user_gem_groups!
  end

  Homebrew.install_bundler_gems!(groups:)
end