Sha256: b479622bea07e8aa194e9141105c73d01cef8f3374e545899158aa4c0e5de97d

Contents?: true

Size: 573 Bytes

Versions: 5

Compression:

Stored size: 573 Bytes

Contents

class Tane::Commands::Claim < Tane::Commands::Base

  class << self
    def process(args)
      email = args.first
      ido_id = args[1]
      event = {'category' => 'app', 'event' => 'claimed',
        'data' => {'time' => Time.now, 'ido_id' => ido_id, 'email' => email}}
      
      post(data_url, event)
    end
    
    def help_text
      <<-EOL
Usage:

    tane claim email ido_id

Notifies the app of an App.claimed event to the locally running app when the email and ido_id are passed.

    tane claim john@example.com 6h284ah92jcj9m2sv21f
EOL
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

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