Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| source.sh | |
| namespace :figaro do | |
| desc "SCP transfer figaro configuration to the shared folder" | |
| task :setup do | |
| on roles(:app) do | |
| upload! "config/application.yml", "#{shared_path}/application.yml", via: :scp | |
| end | |
| end | |
| desc "Symlink application.yml to the release path" | |
| task :symlink do |
| import datetime | |
| from pprint import pprint | |
| from django.db import models, signals | |
| from django.utils import timezone | |
| import django.dispatch | |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |