README.md in zonesync-0.2.0 vs README.md in zonesync-0.3.0
- old
+ new
@@ -70,9 +70,20 @@
aws_secret_access_key: <AWS_SECRET_ACCESS_KEY>
```
### Usage
+#### CLI
+
+```
+$ bundle exec zonesync
+```
+```
+$ bundle exec zonesync --dry-run # log to STDOUT but don't actually perform the sync
+```
+
+#### Ruby
+
Assuming your zone file lives in `hostfile.txt` and your DNS provider credentials are configured in `provider.yml`:
```ruby
require 'zonesync'
Zonesync.call(zonefile: 'hostfile.txt', credentials: YAML.load('provider.yml'))