Sha256: d29dfced6759f538c1b7f6f68c5f78dc51cb2ae87e36c4b6e0549d4ca834737d
Contents?: true
Size: 481 Bytes
Versions: 16
Compression:
Stored size: 481 Bytes
Contents
# desc "Explaining what the task does" # task :optimacms do # # Task goes here # end namespace :optimacms do desc "Set admin password or create a new admin user" task :create_admin_user, [:email, :password] => :environment do |t, args| email = args[:email] row = Optimacms::CmsAdminUser.where(email: email).first || Optimacms::CmsAdminUser.new(email: email) row.password = args[:password] row.password_confirmation = args[:password] row.save end end
Version data entries
16 entries across 16 versions & 1 rubygems