aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli/open.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/open.rb')
-rw-r--r--lib/bundler/cli/open.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/cli/open.rb b/lib/bundler/cli/open.rb
index 474eec43..b6bfda4d 100644
--- a/lib/bundler/cli/open.rb
+++ b/lib/bundler/cli/open.rb
@@ -1,5 +1,5 @@
-require 'bundler/cli/common'
-require 'shellwords'
+require "bundler/cli/common"
+require "shellwords"
module Bundler
class CLI::Open
@@ -10,12 +10,12 @@ module Bundler
end
def run
- editor = [ENV['BUNDLER_EDITOR'], ENV['VISUAL'], ENV['EDITOR']].find{|e| !e.nil? && !e.empty? }
+ editor = [ENV["BUNDLER_EDITOR"], ENV["VISUAL"], ENV["EDITOR"]].find{|e| !e.nil? && !e.empty? }
return Bundler.ui.info("To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR") unless editor
path = Bundler::CLI::Common.select_spec(name, :regex_match).full_gem_path
Dir.chdir(path) do
command = Shellwords.split(editor) + [path]
- system(*command) || Bundler.ui.info("Could not run '#{command.join(' ')}'")
+ system(*command) || Bundler.ui.info("Could not run '#{command.join(" ")}'")
end
end
end