Sha256: be32980b6896a46562cd588333ccf46eb37d2693692adf6aa56f941a84148b3d

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 Bytes

Contents

class Tane::Commands::Event < Tane::Commands::Base

  class << self
    def process(args)
      event = {'category' => args.first, 'event' => args[1], 'data' => eval(args[2])}
      puts event
      post(data_url, event)
    end

    def help_text
      <<-EOL
Usage:

    tane event event_category event_name data_hash
    
Notifies the local app of an event. The event category, event name are to be passed along with the data. The data is in the form of a ruby hash with the keys as strings (not symbols!). The following is an example.
EOL
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tane-0.0.5 lib/tane/commands/event.rb
tane-0.0.4 lib/tane/commands/event.rb
tane-0.0.3 lib/tane/commands/event.rb
tane-0.0.2 lib/tane/commands/event.rb
tane-0.0.1 lib/tane/commands/event.rb