Caleb Buxton
2013-11-26 01:23:24 UTC
Hi,
I'm trying to create a new provider using fog. Rather than use tokens like
with AWS you need to negotiate a session and retain and reuse a session id.
I'd like to create a #create_session request, and a Session model.
Should #create_session depend on a Session model instance, and modify it
with the new session id when successful?
OR
Should #create_session depend on the dependencies for obtaining a Session,
and return a new Session instance.
Is returning/modifying Session instances the responsibility of the Parsers
or the Collections?
Cheers,
Caleb
I'm trying to create a new provider using fog. Rather than use tokens like
with AWS you need to negotiate a session and retain and reuse a session id.
I'd like to create a #create_session request, and a Session model.
Should #create_session depend on a Session model instance, and modify it
with the new session id when successful?
OR
Should #create_session depend on the dependencies for obtaining a Session,
and return a new Session instance.
Is returning/modifying Session instances the responsibility of the Parsers
or the Collections?
Cheers,
Caleb
--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.