Module: LokkaSh::Bundler
- Extended by:
- Forkable
- Defined in:
- lib/lokka-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
6
7
8
9
10
11
12
13
|
# File 'lib/lokka-sh/bundler.rb', line 6
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_commands ⇒ Object
15
16
17
|
# File 'lib/lokka-sh/bundler.rb', line 15
def sub_commands
%w(exec install update open package config check list show console open viz init gem)
end
|