This file contains 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
irb | |
require 'rubygems' | |
require 'mysql' | |
db_conn = Mysql.connect('hostname', 'username', 'password', 'database') | |
# Get an array of all the dbs and then iterate through them | |
dbs = db_conn.list_dbs.each do |db| | |
# print the name of the db | |
puts "db: #{ db }" |
This file contains 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
~/CurrentProjects/OFServer:game_channel$ gem install sprout --pre | |
Successfully installed sprout-1.1.7.pre | |
1 gem installed | |
Installing ri documentation for sprout-1.1.7.pre... | |
Building YARD (yri) index for sprout-1.1.7.pre... | |
[error]: Unhandled exception in YARD::Handlers::Ruby::Legacy::ModuleHandler: | |
[error]: in `lib/sprout/generators/ruby/templates/ruby_base.rb`:3: | |
3: module <%= input.camel_case %> |