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-4.0.0 lib/tasks/konacha.rake
konacha-3.7.0 lib/tasks/konacha.rake
konacha-3.6.0 lib/tasks/konacha.rake
konacha-3.5.1 lib/tasks/konacha.rake
konacha-3.5.0 lib/tasks/konacha.rake
konacha-3.4.0 lib/tasks/konacha.rake
konacha-3.3.0 lib/tasks/konacha.rake
konacha-3.2.5 lib/tasks/konacha.rake
konacha-3.2.4 lib/tasks/konacha.rake
konacha-3.2.3 lib/tasks/konacha.rake
konacha-3.2.2 lib/tasks/konacha.rake
konacha-3.2.1 lib/tasks/konacha.rake
konacha-3.2.0 lib/tasks/konacha.rake
konacha-3.1.0 lib/tasks/konacha.rake
konacha-3.0.0 lib/tasks/konacha.rake
konacha-2.7.0 lib/tasks/konacha.rake
konacha-2.6.0 lib/tasks/konacha.rake
konacha-2.5.1 lib/tasks/konacha.rake
konacha-2.5.0 lib/tasks/konacha.rake
konacha-2.4.0 lib/tasks/konacha.rake