Skip to content

Commit

Permalink
Trim the class structure as it is only a utility class
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Jul 30, 2018
1 parent f7a8760 commit 70f5df7
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ class Utils
DEFAULT_EMS_MAX_RUNNERS = 10
DEFAULT_HOST_MAX_RUNNERS = 10

def initialize(handle = $evm)
@debug = true
@handle = handle
end

def main
end

def self.get_runners_count_by_host(host, handle = $evm)
handle.vmdb(:service_template_transformation_plan_task).where(:state => 'active').select { |task| task.get_option(:transformation_host_id) == host.id }.size
end
Expand Down Expand Up @@ -146,7 +138,3 @@ def self.virtv2vwrapper_options_vmwarews2rhevm_ssh(task)
end
end
end

if $PROGRAM_NAME == __FILE__
ManageIQ::Automate::Transformation::TransformationHosts::Common::Utils.new.main
end

0 comments on commit 70f5df7

Please sign in to comment.