Example for programmatic use doesn't work #249

Closed
oreoshake opened this Issue Mar 1, 2012 · 2 comments

Projects

None yet

1 participant

@oreoshake
Member
require 'guard'

Guard.setup

guardfile = <<-EOF
  guard 'rspec' do
    watch(%r{^spec/.+_spec\.rb$})
  end
EOF

Guard::Dsl.evaluate_guardfile(:guardfile_contents => guardfile)
Guard.start

Output:

Using inline Guardfile.
ERROR: No Guardfile found, please create one with `guard init`.
@oreoshake
Member

And when using a filename:

Using Guardfile at /Users/donkey/workspace/shared/Guardfile.
ERROR: No Guardfile found, please create one with `guard init`.
@oreoshake
Member

Not sure why this wasn't linked to the pull request...

@oreoshake oreoshake closed this Mar 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment