Skip to content

Instantly share code, notes, and snippets.

import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
#
# Cookbook Name:: test_cookbook
# Recipe:: dashing
#
branch_name = node['program-dashboard']['branch_or_tag']
ruby_version = node['ruby']['version']
repo_url = node['dashboard_repo']
ruby_prefix_path = node['ruby']['prefix_path']
dashboard_repo_path = node['dashboard_repo_path']
@sompa
sompa / dashing.rb
Created February 14, 2014 20:25
Recipe to install ruby, required gems and run dashing server
#
# Cookbook Name:: deploy_artifact
# Recipe:: dashing
#
include_recipe "ruby_build"
branch_name = node['program-dashboard']['branch_or_tag']
ruby_version = node['ruby']['version']
repo_url = node['dashboard_repo']
ruby_prefix_path = node['ruby']['prefix_path']