Module: Rails::Sh::Bundler

Extended by:
Forkable
Defined in:
lib/rails/sh/bundler.rb

Class Method Summary collapse

Methods included from Forkable

_invoke, after_fork, before_fork, invoke, run_after_fork, run_before_fork

Methods included from Helpers

#lesspipe

Class Method Details

._invoke(line) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/rails/sh/bundler.rb', line 7

def _invoke(line)
  line ||= 'install'
  command, *args = line.split(/\s+/)
  ARGV.clear
  ARGV.concat args
  require 'bundler/cli'
  ::Bundler::CLI.new.send(command.to_sym)
end

.sub_commandsObject



16
17
18
# File 'lib/rails/sh/bundler.rb', line 16

def sub_commands
  %w(exec install update open package config check list show console open viz init gem)
end