Class: FakeGrid::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/fakegrid.rb

Instance Method Summary collapse

Instance Method Details

#fake_sendgrid(server) ⇒ Object



13
14
15
16
17
# File 'lib/fakegrid.rb', line 13

def fake_sendgrid(server)
  dest = "http://#{server}/api/sendgrid/event"
  fake = FakeSendgrid.new dest, cr_id: options[:cr_id], email: options[:email], event: options[:event]
  puts "Success #{fake.process!}" if fake.process!
end