lib/imperituroard.rb in imperituroard-0.5.3 vs lib/imperituroard.rb in imperituroard-0.5.4
- old
+ new
@@ -192,12 +192,10 @@
def device_remove(login, imei)
iot_connector.device_remove_2(login, imei)
end
-
-
#!5 add address to device
#login
#imei = newdevice_list
#address = newdevice_list
#newdevice_list=[{:imei=>7967843245665, :address=>"Golubeva51"}]
@@ -326,11 +324,12 @@
end
class Ukaz60Automation_2
- attr_accessor :dns
+ attr_accessor :dns,
+ :ukaz60_func
def initialize(telegram_api_url,
telegram_chat_id,
work_directory,
filename_blocked,
@@ -340,11 +339,17 @@
del_bl_memory_script,
dns_login,
dns_password,
belgim_login,
belgim_password,
- belgim_url)
+ belgim_url,
+ ansible_tmp_folder,
+ local_tmp_directory,
+ ansible_ssh_user,
+ ansible_ssh_password,
+ ansible_host,
+ url_backup_dir)
@ukaz69_dns_func = Dns_2.new(telegram_api_url,
telegram_chat_id,
work_directory,
filename_blocked,
filename_tmp_blocked,
@@ -354,16 +359,24 @@
dns_login,
dns_password,
belgim_login,
belgim_password,
belgim_url)
- end
-
- def test
-
+ @ukaz60_func = Ukaz60All_2(telegram_api_url,
+ telegram_chat_id,
+ belgim_login,
+ belgim_password,
+ belgim_url,
+ ansible_tmp_folder,
+ local_tmp_directory,
+ ansible_ssh_user,
+ ansible_ssh_password,
+ ansible_host,
+ url_backup_dir)
end
-
-
+ def no_pasaran
+ ukaz60_func.no_pasaran
+ end
end
\ No newline at end of file