Sha256: b329648186f8fb434d228c9b4d5de6d63228b6e0326b7bc7329cd2c4cb41c75e

Contents?: true

Size: 350 Bytes

Versions: 6

Compression:

Stored size: 350 Bytes

Contents

require 'blog-couchdb'

app = Capcode.application( :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 "Log as admin with : \n\tlogin = #{admin.login}\n\tpassword = #{admin.passwd}"
end

run app

Version data entries

6 entries across 6 versions & 2 rubygems

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