Sha256: f9b50228549afe0f80ad63cddde76ae5f348a43683c30a377eb8c52f19a5300f
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
require 'thor' require 'httparty' require 'hanoi/jane/version' require 'hanoi/jane/towers' require 'hanoi/jane/constrained_towers' require 'hanoi/jane/matrix' require 'hanoi/jane/console' module Hanoi module Jane def self.hit_phat towers, phat url = "http://#{phat}/lights" payload = { matrix: towers.matrix } headers = { 'Content-Type' => 'application/json', 'Accept' => 'application/json' } HTTParty.patch(url, body: payload.to_json, headers: headers) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanoi-jane-0.2.1 | lib/hanoi/jane.rb |