Sha256: 105deb415baad3f5df6fdd56e99e467756e3e085b863241715e517e9395bfebd
Contents?: true
Size: 357 Bytes
Versions: 6
Compression:
Stored size: 357 Bytes
Contents
require 'blog-couchdb' Capcode.run( :port => 3001, :host => "localhost", :db_config => "blog-couchdb.yml" ) do |c| admin = User.find_by_login( "admin" ) if admin.nil? puts "Create admin user..." admin = User.create( :login => "admin", :passwd => "admin" ) end puts "Admin user : \n\tlogin = #{admin.login}\n\tpassword = #{admin.passwd}" end
Version data entries
6 entries across 6 versions & 2 rubygems