README.md in middleman-deploy-1.0.0 vs README.md in middleman-deploy-2.0.0.pre.alpha
- old
+ new
@@ -24,13 +24,13 @@
Make sure that `rsync` is installed, and activate the extension by adding the
following to `config.rb`:
```ruby
activate :deploy do |deploy|
- deploy.method = :rsync
- deploy.host = 'www.example.com'
- deploy.path = '/srv/www/site'
+ deploy.deploy_method = :rsync
+ deploy.host = 'www.example.com'
+ deploy.path = '/srv/www/site'
# Optional Settings
# deploy.user = 'tvaughan' # no default
# deploy.port = 5309 # ssh port, default: 22
# deploy.clean = true # remove orphaned files on remote host, default: false
# deploy.flags = '-rltgoDvzO --no-p --del' # add custom flags, default: -avz
@@ -42,11 +42,11 @@
Make sure that `git` is installed, and activate the extension by adding the
following to `config.rb`:
```ruby
activate :deploy do |deploy|
- deploy.method = :git
+ deploy.deploy_method = :git
# Optional Settings
# deploy.remote = 'custom-remote' # remote name or git url, default: origin
# deploy.branch = 'custom-branch' # default: gh-pages
# deploy.strategy = :submodule # commit strategy: can be :force_push or :submodule, default: :force_push
# deploy.commit_message = 'custom-message' # commit message (can be empty), default: Automated commit at `timestamp` by middleman-deploy `version`
@@ -68,28 +68,28 @@
Activate the extension by adding the following to `config.rb`:
```ruby
activate :deploy do |deploy|
- deploy.method = :ftp
- deploy.host = 'ftp.example.com'
- deploy.path = '/srv/www/site'
- deploy.user = 'tvaughan'
- deploy.password = 'secret'
+ deploy.deploy_method = :ftp
+ deploy.host = 'ftp.example.com'
+ deploy.path = '/srv/www/site'
+ deploy.user = 'tvaughan'
+ deploy.password = 'secret'
end
```
### SFTP
Activate the extension by adding the following to `config.rb`:
```ruby
activate :deploy do |deploy|
- deploy.method = :sftp
- deploy.host = 'sftp.example.com'
- deploy.port = 22
- deploy.path = '/srv/www/site'
+ deploy.deploy_method = :sftp
+ deploy.host = 'sftp.example.com'
+ deploy.port = 22
+ deploy.path = '/srv/www/site'
# Optional Settings
# deploy.user = 'tvaughan' # no default
# deploy.password = 'secret' # no default
end
```
@@ -113,18 +113,18 @@
```ruby
# config.rb
case ENV['TARGET'].to_s.downcase
when 'production'
activate :deploy do |deploy|
- deploy.method = :rsync
- deploy.host = 'www.example.com'
- deploy.path = '/srv/www/production-site'
+ deploy.deploy_method = :rsync
+ deploy.host = 'www.example.com'
+ deploy.path = '/srv/www/production-site'
end
else
activate :deploy do |deploy|
- deploy.method = :rsync
- deploy.host = 'staging.example.com'
- deploy.path = '/srv/www/staging-site'
+ deploy.deploy_method = :rsync
+ deploy.host = 'staging.example.com'
+ deploy.path = '/srv/www/staging-site'
end
end
```
```ruby