ytti/oxidized

View on GitHub
lib/oxidized/model/grandstream.rb

Summary

Maintainability
A
0 mins
Test Coverage
class GrandStream < Oxidized::Model
  using Refinements

  cmd "/cgi-bin/dologin?password=%<password>s" do |cfg| # rubocop:disable Style/FormatStringToken
    sid = JSON.parse(cfg)["body"]["sid"]
    cmd "/cgi-bin/download_cfg?sid=#{sid}"
  end

  cfg :http do
  end
end