Sha256: f86ef98f362366eb3cc85176193e4e8c49a550633ec822429192ea124df21d3b

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

#!/usr/bin/env ruby

begin
  require 'tarzan'
rescue LoadError
  require 'rubygems'
  require 'tarzan'
end

puts %{Pick [S]hell or [C]ampfire: }
interface = case gets.strip
  when 'S' then Tarzan::Interfaces::Shell::Interface.new
  when 'C' then Tarzan::Interfaces::Campfire::Interface.new subdomain: ENV['CAMPFIRE_SUBDOMAIN'], room_id: ENV['CAMPFIRE_ROOM_ID'], token: ENV['CAMPFIRE_TOKEN']
end

interface.play

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tarzan-0.0.3 bin/tarzan