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

Process Function doesn't trigger #31

Open
anis-mahsoume opened this issue Oct 23, 2017 · 1 comment
Open

Process Function doesn't trigger #31

anis-mahsoume opened this issue Oct 23, 2017 · 1 comment

Comments

@anis-mahsoume
Copy link

I would like to call a function before copying my files.
With grunt, you can normally do :

copy: {
  myTask: {
    options: {                
      process: function (content, srcpath) {
        return content;
      }
    },
    files: [...]
  }
}

I would like to do the same using scp, unfortunately it doesn't trigger the function. Any solution or alternative ?

@dkurucz
Copy link
Collaborator

dkurucz commented Sep 23, 2018

Sorry this project hasn't been getting attention... So my only thought on this is scp by nature takes files directly from disk as they are processed for upload. A function like this returning new content would need to modify the source file prior to this upload. Is this something along the lines of what you would be looking for? It's a cool idea, probably not difficult to implement either.

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