lib/danger/commands/local_helpers/pry_setup.rb in danger-9.1.0 vs lib/danger/commands/local_helpers/pry_setup.rb in danger-9.2.0
- old
+ new
@@ -4,9 +4,10 @@
@cork = cork
end
def setup_pry(dangerfile_path, command)
return dangerfile_path if dangerfile_path.empty?
+
validate_pry_available(command)
FileUtils.cp dangerfile_path, DANGERFILE_COPY
File.open(DANGERFILE_COPY, "a") do |f|
f.write("\nbinding.pry; File.delete(\"#{DANGERFILE_COPY}\")")
end