Class: Ukaz60Automation_2

Inherits:
Object
  • Object
show all
Defined in:
lib/imperituroard.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(telegram_api_url, telegram_chat_id, work_directory, filename_blocked, filename_tmp_blocked, ip_for_redirect, add_bl_memory_script, del_bl_memory_script, dns_login, dns_password, belgim_login, belgim_password, belgim_url, ansible_tmp_folder, local_tmp_directory, ansible_ssh_user, ansible_ssh_password, ansible_host, url_backup_dir, , staros_login, staros_password, ukaz60_http_groups, ukaz60_https_groups, staros_hosts) ⇒ Ukaz60Automation_2

Returns a new instance of Ukaz60Automation_2.



405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
# File 'lib/imperituroard.rb', line 405

def initialize(telegram_api_url,
               telegram_chat_id,
               work_directory,
               filename_blocked,
               filename_tmp_blocked,
               ip_for_redirect,
               add_bl_memory_script,
               del_bl_memory_script,
               ,
               dns_password,
               ,
               belgim_password,
               belgim_url,

               ###########for fortigate############
               ansible_tmp_folder, #folder on fortigate ansible server where url list uploaded
               local_tmp_directory, #folder on local mashin where script work
               ansible_ssh_user,
               ansible_ssh_password,
               ansible_host, #fortigate ansible server
               url_backup_dir,
               ####################################

               #########for STAROS#############
               ,
               staros_password,
               ukaz60_http_groups,
               ukaz60_https_groups,
               staros_hosts

)
=begin
  @ukaz69_dns_func = Dns_2.new(telegram_api_url,
                               telegram_chat_id,
                               work_directory,
                               filename_blocked,
                               filename_tmp_blocked,
                               ip_for_redirect,
                               add_bl_memory_script,
                               del_bl_memory_script,
                               dns_login,
                               dns_password,
                               belgim_login,
                               belgim_password,
                               belgim_url)
=end

  @ukaz60_func = Ukaz60All_2.new(telegram_api_url,
                                 telegram_chat_id,
                                 ,
                                 belgim_password,
                                 belgim_url,
                                 ansible_tmp_folder,
                                 local_tmp_directory,
                                 ansible_ssh_user,
                                 ansible_ssh_password,
                                 ansible_host,
                                 url_backup_dir,
                                 ,
                                 staros_password,
                                 ukaz60_http_groups,
                                 ukaz60_https_groups,
                                 staros_hosts)
end

Instance Attribute Details

#dnsObject

Returns the value of attribute dns.



402
403
404
# File 'lib/imperituroard.rb', line 402

def dns
  @dns
end

#ukaz60_funcObject

Returns the value of attribute ukaz60_func.



402
403
404
# File 'lib/imperituroard.rb', line 402

def ukaz60_func
  @ukaz60_func
end

Instance Method Details

#no_pasaranObject

1 block all devices by belgim list



471
472
473
# File 'lib/imperituroard.rb', line 471

def no_pasaran
  ukaz60_func.no_pasaran
end