Sha256: 4267bb19fb8748e255708c0ff994979aae7f1f563fac892559a57ece93339101

Contents?: true

Size: 357 Bytes

Versions: 19

Compression:

Stored size: 357 Bytes

Contents

Execute.define_task do
  desc "delete-device", "Deletes a device from rhoconnect"
  def delete_device
    invoke :config 
    user_id = ask "device's user_id: "
    device_id = ask "device to delete: "
    RestClient.post("#{$url}/api/client/delete_client", { :api_token => $token, :user_id => user_id, :client_id => device_id})
  end #delete_device
end #do

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 commands/rhoconnect/delete_device.rb
rhoconnect-3.4.4 commands/rhoconnect/delete_device.rb
rhoconnect-3.4.3 commands/rhoconnect/delete_device.rb
rhoconnect-3.4.2 commands/rhoconnect/delete_device.rb
rhoconnect-3.3.6 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.2.1 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.2.0 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.2.0.beta5 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.2.0.beta4 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.2.0.beta3 commands/commands/rhoconnect/delete_device.rb
rhoconnect-3.2.0.beta2 commands/commands/rhoconnect/delete_device.rb