Hi all, Hopefully what I''m trying to do here won''t seem too nobby: I have a ''master'' application which I am using to control ''deployments'' of applications (one deployment per customer). I can easily use AR to link my slave app''s into my master as there is one fixed address i.e. self.site = ''master_url''. My dilema comes with creating a form of integration the other way, i.e. having one API model that can link to many different app''s. What is the best route for achieving this? I assume I can do something along the lines of the below but wondering if there is a better way that I''m not thinking of?? ApiModel.new ApiModel.set_site(slave_app_path) ApiModel.method many thanks, Paul -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
bump! On Nov 23, 2:52 pm, paulo <paul.a.taylo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > Hopefully what I''m trying to do here won''t seem too nobby: > > I have a ''master'' application which I am using to control > ''deployments'' of applications (one deployment per customer). > > I can easily use AR to link my slave app''s into my master as there is > one fixed address i.e.self.site= ''master_url''. > > My dilema comes with creating a form of integration the other way, > i.e. having one API model that can link to many different app''s. > > What is the best route for achieving this? I assume I can do something > along the lines of the below but wondering if there is a better way > that I''m not thinking of?? > > ApiModel.new > ApiModel.set_site(slave_app_path) > ApiModel.method > > many thanks, > > Paul-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 28 Nov 2011, at 20:37, paulo <paul.a.taylor84-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote> > On Nov 23, 2:52 pm, paulo <paul.a.taylo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Hi all, >> >> Hopefully what I''m trying to do here won''t seem too nobby: >> >> I have a ''master'' application which I am using to control >> ''deployments'' of applications (one deployment per customer). >> >> I can easily use AR to link my slave app''s into my master as there is >> one fixed address i.e.self.site= ''master_url''. >> >> My dilema comes with creating a form of integration the other way, >> i.e. having one API model that can link to many different app''s. >> >> What is the best route for achieving this? I assume I can do something >> along the lines of the below but wondering if there is a better way >> that I''m not thinking of?? >> >> ApiModel.new >> ApiModel.set_site(slave_app_path) >> ApiModel.method >>You might also want to consider creating subclasses (possibly anonymous) on the fly. Might end up easier if you need to manipulate many objects from different sites at the same time Fred>> many thanks, >> >> Paul > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.