Packaging hidden files

View: New views
2 Messages — Rating Filter:   Alert me  

Packaging hidden files

by John Doxey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
Is there a way I can include hidden files/folders (those starting with a
dot) in a packaged zip file?

I am trying to include a git repository in my zipped distribution.  In my
"distribution" project I tried,

define "distribution" do
  package(:zip).include _(features/.git), path => "project"
end

The ".git" directory gets included in the zip, but not it's contents.

Any help would be greatly appreciated.


Cheers,
John.

Re: Packaging hidden files

by John Doxey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, brain fart, this does actually work (just wasn't how I was expecting
to see it :P )

On Thu, Dec 4, 2008 at 5:51 PM, John Doxey <john.doxey@...> wrote:

> Hi,
> Is there a way I can include hidden files/folders (those starting with a
> dot) in a packaged zip file?
>
> I am trying to include a git repository in my zipped distribution.  In my
> "distribution" project I tried,
>
> define "distribution" do
>   package(:zip).include _(features/.git), path => "project"
> end
>
> The ".git" directory gets included in the zip, but not it's contents.
>
> Any help would be greatly appreciated.
>
>
> Cheers,
> John.
>
>