Sha256: 69867f2cce0973b5b4cc2c46b5addd4a4b4e6a9f029f1b8b67b4a507df51b265

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

# encoding: utf-8

require 'nanoc/cli'

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

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-4.0.0a2 lib/nanoc/tasks/deploy/rsync.rake
nanoc-4.0.0a1 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.8.0 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.7.5 lib/nanoc/tasks/deploy/rsync.rake