Sha256: 8e5821a57fc4bb15dba4ca0ca1d07f031db6405949609432ea956eecfb1fee30
Contents?: true
Size: 729 Bytes
Versions: 7
Compression:
Stored size: 729 Bytes
Contents
require 'rake/testtask' class Ecrire::TestTask < Rake::TestTask attr_accessor :theme def define desc @description task @name do Rake::FileUtilsExt.verbose(@verbose) do args = [ "#{ruby_opts_string} #{run_code} ", "#{file_list_string} #{option_list}" ] if File.exists?(theme) args << theme end ruby args.join do |ok, status| if !ok && status.respond_to?(:signaled?) && status.signaled? raise SignalException.new(status.termsig) elsif !ok fail "Command failed with status (#{status.exitstatus}): " + "[ruby #{args}]" end end end end self end end
Version data entries
7 entries across 7 versions & 1 rubygems