require 'fog'
require 'vcloud'

module Vcloud
  class NetLaunch

    def initialize
      @config_loader = Vcloud::Core::ConfigLoader.new
    end

    def run(config_file = nil, options = {})
      config = @config_loader.load_config(config_file)

      if options[:mock] || ENV['FOG_MOCK']
        ::Fog.mock!
      end

      config[:org_vdc_networks].each do |net_config|
        net_config[:fence_mode] ||= 'isolated'
        Vcloud.logger.info("Provisioning orgVdcNetwork #{net_config[:name]}.")
        begin
          net = Vcloud::Core::OrgVdcNetwork.provision(net_config)
        rescue RuntimeError => e
          Vcloud.logger.error("Could not provision orgVdcNetwork: #{e.message}")
          raise
        end
      end
    end

  end
end

require 'fog'
require 'vcloud'

module Vcloud
  class NetLaunch

    def initialize
      @config_loader = Vcloud::ConfigLoader.new
    end

    def run(config_file = nil, options = {})
      config = @config_loader.load_config(config_file)

      if options[:mock] || ENV['FOG_MOCK']
        ::Fog.mock!
      end

      config[:org_vdc_networks].each do |net_config|
        net_config[:fence_mode] ||= 'isolated'
        Vcloud.logger.info("Provisioning orgVdcNetwork #{net_config[:name]}.")
        begin
          net = Vcloud::Core::OrgVdcNetwork.provision(net_config)
        rescue RuntimeError => e
          Vcloud.logger.error("Could not provision orgVdcNetwork: #{e.message}")
          raise
        end
      end
    end

  end
end

--- 
+++ 
@@ -5,7 +5,7 @@
   class NetLaunch
 
     def initialize
-      @config_loader = Vcloud::ConfigLoader.new
+      @config_loader = Vcloud::Core::ConfigLoader.new
     end
 
     def run(config_file = nil, options = {})
Update Net Launch to use core config

I meant to do this and forgot, and this was only picked up in the long version of the integration tests. Meaning that there are no unit tests around this at all. We should fix that.
