{
  "logdir": "<%= @logdir %>",
  "github_client_id": "<%= @github_client_id %>",
  "github_client_secret": "<%= @github_client_secret %>",
  "statsd": "ops1.holderdeord.no:8125",
  "basic_auth": "<%= @basic_auth %>",
  "projects": {
    "holderdeord/hdo-site#master": {
      "directory": "<%= @appdir %>",
      "token": "<%= @token %>",
      "timeout": 240,
      "environment": {
        "HIPCHAT_API_TOKEN": "<%= @hipchat_api_token %>"
      },
      "command": [
        "cap",
        "-S",
        "revision=%{sha}",
        "staging",
        "deploy:web:disable",
        "deploy:migrations",
        "deploy:web:enable",
        "deploy:cleanup"
      ]
    },
    "holderdeord/hdo-blog#gh-pages": {
        "directory": "<%= @blogdir %>",
        "token": "<%= @token %>",
        "command": [
            "bash",
            "-c",
            "ssh hdo@staging.holderdeord.no 'cd /webapps/blog && git fetch origin && git checkout -f %{sha} && bundle exec jekyll build --lsi --drafts'"
        ]
    }
  }
}

{
  "logdir": "<%= @logdir %>",
  "github_client_id": "<%= @github_client_id %>",
  "github_client_secret": "<%= @github_client_secret %>",
  "statsd": "ops1.holderdeord.no:8125",
  "basic_auth": "<%= @basic_auth %>",
  "projects": {
    "holderdeord/hdo-site#master": {
      "directory": "<%= @appdir %>",
      "token": "<%= @token %>",
      "timeout": 240,
      "environment": {
        "HIPCHAT_API_TOKEN": "<%= @hipchat_api_token %>"
      },
      "command": [
        "cap",
        "-S",
        "revision=%{sha}",
        "staging",
        "deploy:web:disable",
        "deploy:migrations",
        "deploy:web:enable",
        "deploy:cleanup"
      ]
    },
    "holderdeord/hdo-blog#gh-pages": {
        "directory": "<%= @blogdir %>",
        "token": "<%= @token %>",
        "command": [
            "ssh",
            "hdo@staging.holderdeord.no",
            "cd /webapps/blog && git fetch origin && git checkout -f %{sha} && bash -l -c 'bundle install --deployment && bundle exec jekyll build --lsi --drafts'"
        ]
    }
  }
}

Use login shell to get correct rbenv / ruby
Use login shell to get correct rbenv / ruby
