Sha256: d31a14eed18ca66a7030094186ce103234b01bc696e88d621a88ffe03f07578c

Contents?: true

Size: 425 Bytes

Versions: 34

Compression:

Stored size: 425 Bytes

Contents

namespace :konacha do
  desc "Run JavaScript specs interactively"
  task :serve => :environment do
    Konacha.serve
  end

  desc "Run JavaScript specs non-interactively"
  task :run => :environment do
    passed = Konacha.run
    # Apparently there is no canonical way to fail a rake task other than
    # throwing an exception or exiting.
    # http://stackoverflow.com/a/5117457/525872
    exit 1 unless passed
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
konacha-2.3.0 lib/tasks/konacha.rake
konacha-2.2.0 lib/tasks/konacha.rake
konacha-2.1.0 lib/tasks/konacha.rake
konacha-2.0.0 lib/tasks/konacha.rake
konacha-2.0.0.beta3 lib/tasks/konacha.rake
konacha-2.0.0.beta2 lib/tasks/konacha.rake
konacha-2.0.0.beta1 lib/tasks/konacha.rake
konacha-1.5.1 lib/tasks/konacha.rake
konacha-1.5.0 lib/tasks/konacha.rake
konacha-1.4.2 lib/tasks/konacha.rake
konacha-1.4.1 lib/tasks/konacha.rake
konacha-1.4.0 lib/tasks/konacha.rake
konacha-1.3.1 lib/tasks/konacha.rake
konacha-1.3.0 lib/tasks/konacha.rake