Sha256: 9854e1bdd6b49340301d6c0bed543c714733b23d6e19820620dc7ed4db80ffc0

Contents?: true

Size: 321 Bytes

Versions: 5

Compression:

Stored size: 321 Bytes

Contents

module ExpressTranslate
  class ResetAccountGenerator < Rails::Generators::Base    
    include ExpressTranslate
    
    # Reset all account
    # Synchronize account with config file 
    def reset_data
      Database.redis.del("account")
      Account.seed
      puts "Reset account is successful!"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
express_translate-1.0.5 lib/generators/express_translate/reset_account_generator.rb
express_translate-1.0.4 lib/generators/express_translate/reset_account_generator.rb
express_translate-1.0.3 lib/generators/express_translate/reset_account_generator.rb
express_translate-1.0.2 lib/generators/express_translate/reset_account_generator.rb
express_translate-1.0.1 lib/generators/express_translate/reset_account_generator.rb