Sha256: 27d54fecbbe3abb83f05a9244a84ca801286e62d35558eeaea674957fb8c2c8a

Contents?: true

Size: 309 Bytes

Versions: 29

Compression:

Stored size: 309 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

29 entries across 29 versions & 1 rubygems

Version Path
nanoc-3.7.3 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.7.2 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.7.1 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.7.0 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.11 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.10 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.9 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.8 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.7 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.6 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.5 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.4 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.3 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.2 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.1 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.6.0 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.5.0 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.5.0b2 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.5.0b1 lib/nanoc/tasks/deploy/rsync.rake
nanoc-3.4.3 lib/nanoc/tasks/deploy/rsync.rake