sprinkle-tool / sprinkle

Sprinkle is a software provisioning tool you can use to build remote servers with. eg. to install a Rails, or Sinatra stack on a brand new slice directly after its been created
https://github.com/sprinkle-tool/sprinkle
MIT License
1.15k stars 138 forks source link

source pre/post hooks fail for prepare/download/extract #26

Closed joseph closed 11 years ago

joseph commented 13 years ago

From the documentation:

package :magic_beans do
  source 'http://magicbeansland.com/latest-1.1.1.tar.gz' do
    prefix    '/usr/local'

    pre :prepare { 'echo "Here we go folks."' }
    post :extract { 'echo "I believe..."' }
    pre :build { 'echo "Cross your fingers!"' }
  end
end

However, dress forces the command to be run from the build dir -- this is the directory created by extracting the archive. So all pre/post hooks prior to the extraction will fail. In the example above, the pre :prepare should fail.

joshgoebel commented 11 years ago

Confirmed based on source review.

joshgoebel commented 11 years ago

Still using sprinkle, Joseph?

joshgoebel commented 11 years ago

Committed to master and will be released with 0.6.