Skip to content

Commit

Permalink
Merge pull request #696 from deivid-rodriguez/lazily_load_open3
Browse files Browse the repository at this point in the history
Lazily load open3
  • Loading branch information
rafaelfranca authored Dec 6, 2019
2 parents 726b461 + 2115b7a commit 181e91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/actions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "open3"
require_relative "actions/create_file"
require_relative "actions/create_link"
require_relative "actions/directory"
Expand Down Expand Up @@ -260,6 +259,7 @@ def run(command, config = {})
env_splat = [config[:env]] if config[:env]

if config[:capture]
require "open3"
result, status = Open3.capture2e(*env_splat, command.to_s)
success = status.success?
else
Expand Down

0 comments on commit 181e91d

Please sign in to comment.