mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
350f4a0b66
commit
095b5bbcc1
4 changed files with 8 additions and 7 deletions
|
@ -1,7 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "shellwords"
|
||||
|
||||
module Bundler
|
||||
class CLI::Open
|
||||
attr_reader :options, :name
|
||||
|
@ -19,6 +17,7 @@ module Bundler
|
|||
else
|
||||
path = spec.full_gem_path
|
||||
Dir.chdir(path) do
|
||||
require "shellwords"
|
||||
command = Shellwords.split(editor) + [path]
|
||||
Bundler.with_original_env do
|
||||
system(*command)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue