Skip to content

Instantly share code, notes, and snippets.

@caseybecking
Created March 6, 2012 23:12
Show Gist options
  • Save caseybecking/1989675 to your computer and use it in GitHub Desktop.
Save caseybecking/1989675 to your computer and use it in GitHub Desktop.
Demandware: Webdav
require 'guard/guard'
module ::Guard
class Frontend < ::Guard::Guard
end
end
settings = {
dest: 'https://dev02.web.thelimited.demandware.net//on/demandware.servlet/webdav/Sites/Cartridges/version1/'
}
guard 'frontend' do
watch(%r{^.*\.(isml|css|js)$}) do |match|
puts "sending #{match}"
system("curl -nkT #{Dir.pwd}/#{match} #{settings[:dest]}#{match}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment