Skip to content

within release_path do; execute "tar zxf /tmp/test.gz"; end appears to untar test.gz in $HOME #265

@vrsean

Description

@vrsean

This behavior seems counter-intuitive given within. The problem was resolved with setting the -C argument to release_path for tar but stumped me a bit. execute "pwd" indicated the proper directly, oddly enough.

The code was executed within the context of on roles(:assets) do |host|...basically we are speeding up asset deployment by forking off the compilation of assets in the beginning, tarring up public/assets, and scping that file to /tmp in another task to give some background on the issue.

We are using sshkit 1.5.1.

Can anyone duplicate this issue or shed some light on it?

Thanks,

--sean

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions