Class: OpenPortCheckerVm

Inherits:
VCloudScript show all
Defined in:
lib/scripts/vCloud/open_port_checker_vm.rb

Overview

Identifies all open internet services and checks if there are actually used by a service. Note: this script depends on a propriatary version of the vCloud API implemented by Terremark.

Defined Under Namespace

Classes: AnalysisDone, CheckingInternetServices, Done, OpenPortCheckerState, RetrievingInternetServices

Instance Method Summary collapse

Methods inherited from VCloudScript

#get_execution_result, #post_message, #register_progress_message_listener, #register_state_change_listener, #start_script

Constructor Details

#initialize(input_params) ⇒ OpenPortCheckerVm

Input parameters

  • vcloud_api_handler => object that allows to access the vCloud service



13
14
15
# File 'lib/scripts/vCloud/open_port_checker_vm.rb', line 13

def initialize(input_params)
  super(input_params)
end

Instance Method Details

#check_input_parametersObject



17
18
19
20
21
# File 'lib/scripts/vCloud/open_port_checker_vm.rb', line 17

def check_input_parameters()
  if @input_params[:vcloud_api_handler] == nil
    raise Exception.new("no vCloud handler specified")
  end
end

#load_initial_stateObject



23
24
25
# File 'lib/scripts/vCloud/open_port_checker_vm.rb', line 23

def load_initial_state()
  OpenPortCheckerState.load_state(@input_params)
end