Sha256: 886c97d749afbc1f2dad32a7bcfd5299c7478a34f0a27e11de670112b3940be1
Contents?: true
Size: 817 Bytes
Versions: 4
Compression:
Stored size: 817 Bytes
Contents
#!/usr/bin/env ruby require 'rake' require 'rake/tasklib' require 'guard/jasmine/cli' module Guard # Provides a method to define a Rake task that # runs the Jasmine specs. # class JasmineTask < ::Rake::TaskLib # Name of the main, top level task attr_accessor :name # CLI options attr_accessor :options # Initialize the Rake task # # @param [Symbol] name the name of the Rake task # @param [String] options the CLI options # @yield [JasmineTask] the task # def initialize(name = :jasmine, options = '') @name = name @options = options yield self if block_given? namespace :guard do desc 'Run all Jasmine specs' task(name) do Guard::Jasmine::CLI.start(options.split) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
guard-jasmine-0.9.10 | lib/guard/jasmine/task.rb |
guard-jasmine-0.9.9 | lib/guard/jasmine/task.rb |
guard-jasmine-0.9.8 | lib/guard/jasmine/task.rb |
guard-jasmine-0.9.7 | lib/guard/jasmine/task.rb |