Sha256: 29fa064a7fc9a738cca47fac16df796ce86dbeb38215f38d8902861a61f452c9

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

# encoding: utf-8

namespace :deploy do

  desc 'Upload the compiled site using rsync'
  task :rsync do
    dry_run     = !!ENV['dry_run']
    config_name = ENV['config'] || :default

    cmd = [ 'deploy', '-t', config_name ]
    cmd << '-n' if dry_run

    Nanoc::CLI.run cmd
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nanoc-3.3.1 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.3.0 lib/nanoc/tasks/deploy/rsync.rake