This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'http://rubygems.org' | |
| gem 'sinatra' | |
| gem 'sinatra-mongoid', :require => 'sinatra/mongoid' | |
| gem 'bcrypt-ruby' | |
| gem 'bson_ext' | |
| gem 'json' | |
| gem 'fog' | |
| gem 'carrierwave' | |
| gem 'i18n' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| densone:curbd densone$ rackup -p 9292 config.ru -d | |
| nil | |
| Exception `LoadError' at /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31 - no such file to load -- bundler/setup | |
| Exception `NoMethodError' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rational.rb:78 - undefined method `gcd' for Rational(1, 2):Rational | |
| Exception `Errno::EEXIST' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /Library/Ruby/Gems/1.8 | |
| Exception `LoadError' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/tmpdir.rb:14 - no such file to load -- Win32API | |
| Exception `TypeError' at (eval):4 - can't modify frozen object | |
| Exception `LoadError' at /Library/Ruby/Gems/1.8/gems/json-1.5.1/lib/json/ext.rb:12 - no such file to load -- json/ext/1.8/parser | |
| Using Ext extension for JSON. | |
| Exception `LoadError' at /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/core_ext/string/xchar.rb:4 - no such file to load -- fast_xs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Exception `NoMethodError' at /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:35 - undefined method `first_name' for User:Class | |
| (eval):2:in `method_missing_without_nesting': undefined method `first_name' for User:Class (NoMethodError) | |
| from (eval):2:in `method_missing' | |
| from (eval):4:in `__send__' | |
| from (eval):4:in `method_missing' | |
| from ./user.rb:8 | |
| from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require' | |
| from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:239:in `require' | |
| from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:225:in `load_dependency' | |
| from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.4/lib/active_support/dependencies.rb:596:in `new_constants_in' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mongoid.configure do |config| | |
| autocreate_indexes = true | |
| if ENV['MONGOHQ_URL'] | |
| conn = Mongo::Connection.from_uri(ENV['MONGOHQ_URL']) | |
| uri = URI.parse(ENV['MONGOHQ_URL']) | |
| config.master = conn.db(uri.path.gsub(/^\//, '')) | |
| else | |
| config.master = Mongo::Connection.from_uri("mongodb://localhost:27017").db('xxxxx_development') | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'http://rubygems.org' | |
| gem 'sinatra' | |
| gem 'mongoid','2.0.0.rc.7' | |
| gem 'sinatra-mongoid', :require => 'sinatra/mongoid' | |
| gem 'bcrypt-ruby' | |
| gem 'carrierwave' | |
| gem 'bson_ext' | |
| gem 'json' | |
| gem 'fog' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArgumentError: wrong number of arguments (1 for 0) | |
| ./curbd.rb:66:in `to_json' | |
| ./curbd.rb:66:in `GET /v1/users/:username' | |
| /Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:1057:in `call' | |
| /Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:1057:in `compile!' | |
| /Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:643:in `instance_eval' | |
| /Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:643:in `route_eval' | |
| /Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:627:in `route!' | |
| /Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:675:in `process_route' | |
| /Library/Ruby/Gems/1.8/gems/sinatra-1.1.2/lib/sinatra/base.rb:672:in `catch' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'aws' | |
| require 'net/ssh' | |
| require 'net/http' | |
| require 'logger' | |
| def message_lines | |
| 2.times do |x| | |
| puts "****************************************" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vagrant::Config.run do |config| | |
| instances = { | |
| :guttersnipe => {:box => "ubuntu-1104-64", :ip => "10.7.7.69"}, | |
| :t1 => {:box => "ubuntu-1104-64", :ip => "10.7.7.10"}, | |
| #:t2 => {:box => "solaris-10u9-64", :ip => "10.7.7.11"}, | |
| #:t3 => {:box => "centos-57-64", :ip => "10.7.7.12"}, | |
| :t4 => {:box => "centos-60-64", :ip => "10.7.7.13"}, | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| undefined:2 | |
| "brand": "joyent", | |
| ^ | |
| SyntaxError: Unexpected token | |
| at Object.parse (native) | |
| at /usr/vm/sbin/vmadm:609:28 | |
| at fs.readFile (fs.js:176:14) | |
| at Object.oncomplete (fs.js:297:15) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@d4-ae-52-78-e6-b1 ~]# cat zone.json | |
| { | |
| "brand": "joyent", | |
| "zfs_io_priority": 30, | |
| "quota": 20, | |
| "nowait": true, | |
| "dataset_uuid": "37e6af92-daf0-11e0-ac11-473ca1173ab0", | |
| "max_physical_memory": 256, | |
| "alias": "zone70", | |
| "nics": [ |