مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
refactor: move lib/postal/user_creator to app/util/user_creator
هذا الالتزام موجود في:
@@ -2,10 +2,11 @@
|
||||
|
||||
require "highline"
|
||||
|
||||
module Postal
|
||||
module UserCreator
|
||||
module UserCreator
|
||||
|
||||
def self.start(&block)
|
||||
class << self
|
||||
|
||||
def start(&block)
|
||||
cli = HighLine.new
|
||||
puts "\e[32mPostal User Creator\e[0m"
|
||||
puts "Enter the information required to create a new Postal user."
|
||||
@@ -31,4 +32,5 @@ module Postal
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
@@ -7,9 +7,8 @@ trap("INT") do
|
||||
end
|
||||
|
||||
require_relative "../config/environment"
|
||||
require "postal/user_creator"
|
||||
|
||||
Postal::UserCreator.start do |u|
|
||||
UserCreator.start do |u|
|
||||
u.admin = true
|
||||
u.email_verified_at = Time.now
|
||||
end
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم