Skip to content

Instantly share code, notes, and snippets.

INFO: Saving rvm
INFO: Validating ruby files
INFO: Validating templates
INFO: Syntax OK
INFO: Generating Metadata
INFO: Uploading files
/Users/alex/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/openssl/buffering.rb:145:in `sysread_nonblock': end of file reached (EOFError)
from /Users/alex/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/openssl/buffering.rb:145:in `read_nonblock'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:135:in `rbuf_fill'
from /Users/alex/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil'
@crystalneth
crystalneth / gist:838142
Created February 22, 2011 03:01
radiant/recipes/default.rb
#
# Author:: Joshua Timberman <[email protected]>
# Author:: Daniel DeLeo <[email protected]>
# Cookbook Name:: radiant
# Recipe:: default
#
# Copyright 2009, Opscode, Inc.
# Copyright 2009, Daniel DeLeo
#
# Licensed under the Apache License, Version 2.0 (the "License");
UPDATE: More info - I printed the config from within knife:
{:flavor=>"m1.small", :security_groups=>["default"], :availability_zone=>"us-east-1b", :ssh_user=>"ubuntu", :region=>"us-east-1", :distro=>"ubuntu10.04-gems", :template_file=>false, :editor=>nil, :format=>"json", :ssh_key_name=>"test-keypair", :image=>"ami-88f504e1", :identity_file=>"/Users/alex/.ssh/test-keypair.rsa", :log_level=>:debug, :config_file=>"/Users/alex/Development/chef/rails-quick-start/.chef/knife.rb"}
OUTPUT:
173-153-55-94:rails-quick-start alex$ knife ec2 server create 'role[production]' 'role[base]' 'role[radiant_database_master]' 'role[radiant]' 'role[radiant_run_migrations]' 'recipe[radiant::db_bootstrap]' -S rails-quick-start -x ubuntu -G default -i ami-88f504e1 -f m1.small -I ~/.ssh/test-keypair.rsa -l debug
DEBUG: Using configuration from /Users/alex/Development/chef/rails-quick-start/.chef/knife.rb
[WARN] Fog::AWS::EC2#new is deprecated, use Fog::AWS::Compute#new instead (/Users/alex/.rvm/gems/ruby-1.9.2-p0/gems/chef-0.9
@crystalneth
crystalneth / gist:834745
Created February 19, 2011 01:42
Output from create_staging
** [out :: fresh.foo.com] Setting up mountall (2.15.3) ...
** [out :: fresh.foo.com] Setting up upstart (0.6.5-8) ...
** [out :: fresh.foo.com]
** [out :: fresh.foo.com] Setting up ifupdown (0.6.8ubuntu29.2) ...
** [out :: fresh.foo.com] start: Job is already running: network-interface-security
** [out :: fresh.foo.com]
** [out :: fresh.foo.com] Setting up dbus (1.2.16-2ubuntu4.1) ...
** [out :: fresh.foo.com] The system user `messagebus' already exists. Exiting.
** [out :: fresh.foo.com] start: Job is already running: dbus
def map[T](f: (Array[String]) => T):List[T] = {
reader.readNext match {
case fields:Array[String] => f(fields) :: map(f)
case _ => Nil
}
}
def map[T](f: (Array[String]) => T):List[T] = {
def _map[T](f: (Array[String] => T), reader:CSVReader):List[T] = {
# for some reason the closure doesn't have access to class variables
lon = params[:x]; lat = params[:y]; zoom = params[:zoom]; city = current_quest.city.code;
width = params[:width].to_f; height = params[:height].to_f
current_quest.primary_window = GeoLocation.new do
# self.lon = params[:x]; self.lat = params[:y]; self.zoom = params[:zoom]
puts "width: #{width}"
puts "lat: #{lat}"
self.lon = lon; self.lat = lat;
self.width = width; self.height = height;
self.zoom = zoom; self.city = city
def activate_post(user, _submit_activate = nil, _submit_cancel = nil)
@page_title = 'Activate Account'
if _submit_cancel
message[:notice] = "Activation cancelled"
redirect(url(:home), :message => message)
elsif _submit_activate # activate action
@user = User.new(user)
if user[:password] != user[:password_confirmed]
@user.errors.add(:password, "passwords do not match")
@user.password = @user.password_confirmed = nil # Not sure why you want to do this but this will keep them from displaying