class Guard::Group
@see Guard::CLI
end
end
watch(%r{^spec/javascripts/(.*)..*}) { |m| newest_js_file(“spec/javascripts/#{m}_spec”) }
guard ‘jasmine-headless-webkit’ do
guard ‘coffeescript’, :input => ‘spec/coffeescripts’, :output => ‘spec/javascripts’
group :frontend, :halt_on_fail => true do
@example Group that aborts on failure
- Abort task execution chain on failure within a group.
- You can start only certain Groups from the command line by passing the ‘–group` option.
A group of Guards. There are two reasons why you want to group your guards:
def initialize(name, options = {})
(**options)
-
halt_on_fail
(Boolean
) -- if a task execution
Parameters:
-
options
(Hash
) -- the group options -
name
(String
) -- the name of the group
def initialize(name, options = {}) @name = name.to_sym @options = options end