refactor: move lib/postal/user_creator to app/util/user_creator

This commit is contained in:
Adam Cooke
2024-02-23 22:51:37 +00:00
committed by Adam Cooke
parent e3bc9da253
commit 64b2704b02
2 changed files with 6 additions and 5 deletions
@@ -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
+1 -2
View File
@@ -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