Skip to content

Instantly share code, notes, and snippets.

View ravage's full-sized avatar

Rui Miguel ravage

  • Portugal
  • 07:10 (UTC +01:00)
View GitHub Profile
@ravage
ravage / debian-chef-solo-bootstrap
Created April 24, 2012 00:25
Debian chef-solo bootstrap
http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
#!/usr/bin/env bash
RUBY_VERSION=ruby-1.9.3-p194
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/$RUBY_VERSION.tar.bz2
tar -jxvf $RUBY_VERSION.tar.bz2
cd $RUBY_VERSION
./configure --prefix=/usr/local
require 'rubygems'
require 'ramaze'
class MyApp
include Ramaze::Optioned
options.dsl do
o "Application name", :name, "Ramaze DSL Demo"
o "Application version",
require 'rubygems'
require 'ramaze'
require 'feedzirra'
class MainController < Ramaze::Controller
layout :master
def master
%{
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"