cucumber-step_writer/skel/step_writer.rb

11 lines
179 B
Ruby

Cucumber::StepWriter.after_write do |dir|
%w{open xdg-open}.each do |cmd|
%x{which #{cmd}}
if $?.exitstatus
system %{#{cmd} #{dir}}
break
end
end
end