Sha256: 7cff6a06fa76ae8b1d7113bd6bcb08e88f6b9ee23be30a35f28973635207697e

Contents?: true

Size: 903 Bytes

Versions: 38

Compression:

Stored size: 903 Bytes

Contents

class Mu
class System
  include Helper

  attr_accessor :host, :docroot, :username, :password

  def initialize(host=ENV['MU_IP'], username=ENV['MU_ADMIN_USER'], password=ENV['MU_ADMIN_PASS'])
    @host = host
    @username  = username
    @password  = password
    @docroot = "/api/v5/system/"
    @cookie = ""
    @response = nil
    @http = HttpHelper.new(@host, @username, @password, @docroot)
    msg "Created System Api object to :#{@host}", Logger::DEBUG
  end

  # restarts the Mu system
  def restart
    response = @http.get("restart/")
    msg response, Logger::DEBUG
    return response
  end

  # returns Mu System status
  def status
    response =  @http.get("status/")
    msg response, Logger::DEBUG
    return response
  end

  # returns more Mu System status
  def status2
    response = @http.get("status2/")
    msg response, Logger::DEBUG
    return response
  end
 
end 
end # Mu

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
mu-5.7.41 lib/mu/api/system.rb
mu-5.7.40 lib/mu/api/system.rb
mu-5.7.39 lib/mu/api/system.rb
mu-5.7.38 lib/mu/api/system.rb
mu-5.7.37 lib/mu/api/system.rb
mu-5.7.36 lib/mu/api/system.rb
mu-5.7.35 lib/mu/api/system.rb
mu-5.7.34 lib/mu/api/system.rb
mu-5.7.33 lib/mu/api/system.rb
mu-5.7.32 lib/mu/api/system.rb
mu-5.7.31 lib/mu/api/system.rb
mu-5.7.30 lib/mu/api/system.rb
mu-5.7.29 lib/mu/api/system.rb
mu-5.7.28 lib/mu/api/system.rb
mu-5.7.27 lib/mu/api/system.rb
mu-5.7.26 lib/mu/api/system.rb
mu-5.7.25 lib/mu/api/system.rb
mu-5.7.24 lib/mu/api/system.rb
mu-5.7.23 lib/mu/api/system.rb
mu-5.7.22 lib/mu/api/system.rb