You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
678 B

13 years ago
# an user for administrative purposes
admin = User.new(
13 years ago
:first_name => 'admin',
:last_name => 'admin',
13 years ago
:email => 'admin@entrydns.net',
13 years ago
:password => 'garlik1',
:password_confirmation => 'garlik1'
13 years ago
)
admin.confirmed_at = Time.now
admin.save!
admin.confirm!
13 years ago
for name in Settings.host_domains
entrydns_org = Domain.new(:name => name, :type => 'NATIVE', :user_id => admin.id)
entrydns_org.setup(admin.email)
entrydns_org.save!
13 years ago
end
# sample user
user = User.new(
13 years ago
:first_name => 'user',
:last_name => 'user',
13 years ago
:email => 'user@entrydns.net',
13 years ago
:password => 'useruser',
:password_confirmation => 'useruser'
)
user.confirmed_at = Time.now
user.save!
user.confirm!