Sha256: 9bab3527fca2b1745aa9d0baea27aa7e6b2713607c84c3fd31ed0a54d6f99f84

Contents?: true

Size: 1.02 KB

Versions: 36

Compression:

Stored size: 1.02 KB

Contents

require 'net/ssh'

class EzuevFun_2


  def vpn_create_client
    command = "/usr/bin/python3.6 /projects/vpn_test/methods/create_client.py '{\"unp\": \"\", \"company_name\": \"MinskTrans\", \"full_name\":\"MinskTransTest\", \"info\": \"NewYork\", \"profile\": \"IoT\", \"net_type\": \"static\", \"number_sims\": 1024, \"msisdns\": [37529, 37528]}'"
    Net::SSH.start("172.24.157.24", "soapgw", :password => "3g8Yh2Sl7Vz9Nbd358") do |ssh|
      result = ssh.exec!(command)
      p result
    end
  end

  def vpn_update_client
    command = "/usr/bin/python3.6 /projects/vpn_test/methods/update_client.py '{\"unp\": \"\",  \"old_company_name\": \"MinskTrans\",  \"new_company_name\": \"MinskTrans1\",   \"new_full_name\": \"MinskTransTest1\",  \"new_address\": \"NewYork\", \"new_contact_name\": \"1\", \"new_contact_number\": \"1\"}'"
    Net::SSH.start("172.24.157.24", "soapgw", :password => "3g8Yh2Sl7Vz9Nbd358") do |ssh|
      result = ssh.exec!(command)
      p result
    end
  end

end


ff = EzuevFun_2.new
ff.vpn_update_client


Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
imperituroard-1.1.23 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.22 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.21 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.20 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.19 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.18 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.17 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.15 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.14 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.13 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.12 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.11 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.10 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.9 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.8 lib/imperituroard/projects/autovpn/functions_ezuev.rb
imperituroard-1.1.7 lib/imperituroard/projects/vpn/ezuev_fun/functions_ezuev.rb
imperituroard-1.1.5 lib/imperituroard/projects/vpn/ezuev_fun/functions_ezuev.rb
imperituroard-1.1.4 lib/imperituroard/projects/vpn/ezuev_fun/functions_ezuev.rb
imperituroard-1.1.3 lib/imperituroard/projects/vpn/ezuev_fun/functions_ezuev.rb
imperituroard-1.1.2 lib/imperituroard/projects/vpn/ezuev_fun/functions_ezuev.rb