README.md in simple_provision-0.99.10 vs README.md in simple_provision-0.99.11

- old
+ new

@@ -85,10 +85,11 @@ - scripts/ruby.sh - scripts/rubygems.sh - scripts/redis.sh env: DBNAME: my_db_name + REDISNAME: <%= ENV["REDIS_NAME"] %> WEBROOT: /var/www/app ``` File declared in files and scripts can point to anywhere in the machine from which you make the provision. The file path is calculated relative @@ -96,9 +97,12 @@ provisioned server at ~/files and ~/scripts ### Passing variables to scripts Variables defined in `env` will be exposed to scripts during execution. That way you can re-use the same scripts for different type of servers. +You can pass environment variables (available through the use of bash `export ENVNAME=value` +or passing to `simpro` command such as `ENVNAME=value simpro`) to the +env section using the ERB syntax (`<%= ENV['ENVNAME'] %>`). ## Provision your server `bundle exec simpro my-awesome-server root@my-host` ## Contributing