Sha256: 0520427fd9879a6da6c893d8b640e343721f5a06ef31babc2230439f86f56827
Contents?: true
Size: 778 Bytes
Versions: 3
Compression:
Stored size: 778 Bytes
Contents
# Wrapper method for quickly loading, rendering ERB templates # and uploading them to the server. def template(from, to) erb = File.read(File.expand_path("../templates/#{from}", __FILE__)) put ERB.new(erb).result(binding), to end # Wrapper method to set default values for recipes. def set_default(name, *args, &block) set(name, *args, &block) unless exists?(name) end # Review and modify the tasks below on a per-app/language/framework basis. namespace :deploy do after "deploy:update_code", "deploy:post" desc "Performs the post-deploy tasks." task :post do migrate end after "deploy:setup", "deploy:setup_shared" desc "Sets up additional folders/files after deploy:setup." task :setup_shared do run "mkdir -p '#{shared_path}/config'" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
negroku-0.0.11 | lib/negroku/tasks/base.rb |
negroku-0.0.10 | lib/negroku/tasks/base.rb |
negroku-0.0.9 | lib/negroku/tasks/base.rb |