<?xml version="1.0" encoding="UTF-8"?>
<config>
<include path="functions.xml"/>
<var-def name="tags" overwrite="false">art</var-def>
<var-def name="num" overwrite="false">1</var-def>
<loop index="i" item="url">
<list>
<var-def name="imagelinks">
<call name="download-multipage-list">
<call-param name="pageUrl">
<template>http://www.flickr.com/search/?q=${tags}&m=tags</template>
</call-param>
<call-param name="nextXPath">//a[contains(., 'Next')]/@href</call-param>
<call-param name="itemXPath">//img[@class='pc_img']/@src</call-param>
<call-param name="maxloops"><template>${num}</template></call-param>
</call>
</var-def>
</list>
<body>
<empty>
<file action="write" path='flickr/${tags.toString().replaceAll(" ", "")}/${i}.jpg' type="binary">
<http url='${url.toString().replaceFirst("_m.jpg", ".jpg?v=0")}'/>
</file>
</empty>
</body>
</loop>
</config>
server {
listen 80;
server_name srv1.ru;
location /Address1 {
proxy_pass srv1.ru:8080/Address2;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
gem "somegem", '0.0.1', :path => "/path/to/gem"