Plugin::Google

  • Intergates GoogleSpreadsheet support into the LanGrove persistance layer.

gem install langrove-plugin-google

Implements

Supports

Caveats

  • Only performs updates to SpreadSheet at specified intervals.
  • Updates by row number, a sort that reorders rows while an update is in progress may cause perculiarities
  • Done as an experiment (may not function all that terrifically)

Benefits

  • Updates columns by name, additional columns not in the capsule will not be affected.

Example

Configuring the plugin.


    ...

    :plugins:
        :a_google_doc:
            #
            # reality may differ (unimplemented)
            #
            :class: GoogleSpreadsheet
            :google_key: 0Ak66wsrXSMqjdEV
            :username: [email protected]
            :password: passrod

            #
            # Buffered: calls to store() accumulate
            # and a batched update runs at the
            # specified interval (seconds)
            #
            :interval: 600

            #
            # Column name containing row key
            #
            :key: 
                :key_column_name: :key_column_name

    ...

Assigning the plugin to a daemon.



    ...

    :server:
        :behavior:
            :persistable:
                :plugin: :a_google_doc
                :at:
                    :handler_after_receive: 
                    #
                    # will default to storing the caspsule 
                    # after the Handler.receive( data )
                    # method returns.
                    #

    ...