mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-12-01 16:51:24 +00:00
13 lines
231 B
Ruby
13 lines
231 B
Ruby
|
# Reads in raw Rails 3 session store, returns user id
|
||
|
|
||
|
require 'base64'
|
||
|
|
||
|
session_store = ARGV[0]
|
||
|
|
||
|
deserialised_store = Marshal.load(Base64.decode64(session_store))
|
||
|
|
||
|
user_id = deserialised_store['user']
|
||
|
|
||
|
STDOUT.write user_id
|
||
|
|
||
|
exit 0
|