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

Version Path
capcode-base-couch_foo-0.1.0 examples/blog-couchdb-run.rb
Capcode-0.8.9 examples/blog-couchdb-run.rb
Capcode-0.8.8 examples/blog-couchdb-run.rb
Capcode-0.8.7 examples/blog-couchdb-run.rb
Capcode-0.8.6 examples/blog-couchdb-run.rb
Capcode-0.8.5 examples/blog-couchdb-run.rb