Sha256: 67b0eee33ec82106c284af247cd3575f9c52d0d0e5d81ea5f3a4b261e5e5fd69

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

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

require_relative "gems/environment.rb"

# Boot environment
# This task isn't useful as is, but a lot of Rango tasks expect this
# will exist and take an optional argument with name of environment
Task.new(:environment) do |task|
  task.hidden = true
  task.define do |environment = nil, options|
    RACK_ENV = environment || ENV["RACK_ENV"] || "development"
    require_relative "init.rb"
  end
end

#load "pupu/tasks/pupu.nake"
load "rango/tasks/spec.nake"
<% unless @orm.eql?("mongomapper") %>
load "rango/orm/tasks/<%= @orm %>.nake"
<% end %>

<% if @git_deployer %>
begin
  load "git-deployer.nake"
  Task["deployer:setup"].config[:servers] = {
    server1: {
      user: "TODO",
      host: "TODO",
      repo: "/var/sources/<%= @name %>.git",
      path: "/var/www/<%= @name %>"
    }
  }
rescue LoadError
  warn "You have to install git-deployer gem if you want to deploy to remote servers!"
end
<% end %>

<% if @code_cleaner %>
begin
  load "code-cleaner.nake"
rescue LoadError
  abort "You have to install code-cleaner gem!"
else
  Task["hooks:whitespace:install"].tap do |task|
    task.config[:path] = "bin"
    task.config[:encoding] = "utf-8"
    task.config[:whitelist] = '(bin/[^/]+|.+\.(rb|rake|nake|thor|task))$'
    #task.config[:blacklist]
  end
end
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rango-0.2.1 stubs/stack/content/tasks.rb.rbt
rango-0.2.1.pre stubs/stack/content/tasks.rb.rbt