Sha256: 2c48519bdd68edbf1bf3a521eea26351ec185805b1683bf801f32b1848991c6c

Contents?: true

Size: 467 Bytes

Versions: 9

Compression:

Stored size: 467 Bytes

Contents

require "bundler/gem_tasks"
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task default: :spec

task :watch do
  folders_to_watch = 'bin lib spec'
  action_on_change = 'bundle exec rake'
  begin 
    gem 'filewatcher'
    sh "filewatcher '#{folders_to_watch}' '#{action_on_change}'"
  rescue Gem::LoadError
    puts 'You need to have the filewatcher gem installed to perform this task.'
    puts 'Install with \'gem install filewatcher\''
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
where_to-0.9.6 Rakefile
where_to-0.9.5 Rakefile
where_to-0.9.4 Rakefile
where_to-0.9.3 Rakefile
where_to-0.9.2 Rakefile
where_to-0.9.1 Rakefile
where_to-0.9.0 Rakefile
where_to-0.8.1 Rakefile
where_to-0.8.0 Rakefile