class HarnessGuardfileGenerator

Public Instance Methods

generate_guardfile() click to toggle source
# File lib/generators/harness_guardfile/harness_guardfile_generator.rb, line 7
def generate_guardfile
  template 'Guardfile', 'Guardfile'
end

Private Instance Methods

spec_paths() click to toggle source
# File lib/generators/harness_guardfile/harness_guardfile_generator.rb, line 12
def spec_paths
  options.watch_types.map { |t| "spec/#{t}" }
end
spec_type_matcher() click to toggle source
# File lib/generators/harness_guardfile/harness_guardfile_generator.rb, line 16
def spec_type_matcher
  options.watch_types.join('|')
end