Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow copying of a single file #18

Closed
coderek opened this issue Oct 21, 2013 · 5 comments
Closed

Allow copying of a single file #18

coderek opened this issue Oct 21, 2013 · 5 comments

Comments

@coderek
Copy link

coderek commented Oct 21, 2013

Not sure why copying of a single file is not part of this plugin.

I think it's a very useful feature.

@marcisme
Copy link
Owner

Have you tried specifying the file name as the watcher pattern? Something like the following:

guard :copy, :from => 'source', :to => 'target' do
  watch(%r{^source/myfilename$})
end

@coderek
Copy link
Author

coderek commented Oct 23, 2013

This works for me after I moved the file to a sub-level folder.

If the file is in the same level as Guardfile, then it doesn't seem to work.

@marcisme
Copy link
Owner

Unfortunately copying from the top-level doesn't work. I tried to add support in response to #15, but it ended up being a non-trivial amount of work.

@coderek
Copy link
Author

coderek commented Oct 23, 2013

I see. I'll go with the sub folder option then.

Thanks!

@marcisme
Copy link
Owner

marcisme commented May 8, 2014

No more work on this is planned at this time.

@marcisme marcisme closed this as completed May 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants