Sha256: ce0bb708de9e8473bc90dfa116cf5fa72f071c3069ebe7fa490df6fbce5b86fc

Contents?: true

Size: 620 Bytes

Versions: 10

Compression:

Stored size: 620 Bytes

Contents

#!/usr/bin/env bundle exec nake
# encoding: utf-8

Encoding.default_internal = "utf-8"
Encoding.default_external = "utf-8"

# Task.tasks.default_proc = lambda { |*| Task[:generate] }

Task.new(:generate) do |task|
  task.description = "Generate static HTML."

  task.define do
    sh "./boot.rb"
  end
end

Task.new(:rsync) do |task|
  task.description = "Rsync the output to server."

  # config
  task.config[:user]   = "TODO"
  task.config[:server] = "TODO"
  task.config[:path]   = "TODO"

  task.define do |options|
    sh "rsync -av --delete output/ #{config[:user]}@#{config[:server]}:#{config[:path]}"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ace-0.4.9 project_generator/content/tasks.rb
ace-0.4.8 project_generator/content/tasks.rb
ace-0.4.7 project_generator/content/tasks.rb
ace-0.4.6 project_generator/content/tasks.rb
ace-0.4.5 project_generator/content/tasks.rb
ace-0.4.4 project_generator/content/tasks.rb
ace-0.4.3 project_generator/content/tasks.rb
ace-0.4.2 project_generator/content/tasks.rb
ace-0.4.1 project_generator/content/tasks.rb
ace-0.4 project_generator/content/tasks.rb