Sha256: 3bedbe57141a9d1d94a56f5f72b2a31555adddb708e85deca4464fe240f2a305
Contents?: true
Size: 783 Bytes
Versions: 4
Compression:
Stored size: 783 Bytes
Contents
require "ostruct" require "pathname" class EnvironmentHelper attr_writer :domain_name attr_accessor :random_hostname, :name, :default_prefix def [](value) self.send(value.to_sym) end def cpus 4 end def memory 1024 end %w(cpus cpu_mode machine_type disk_bus nested volume_cache kernel cmd_line initrd graphics_type graphics_autoport graphics_port graphics_ip graphics_passwd video_type video_vram keymap storage_pool_name disks cdroms driver).each do |name| define_method(name.to_sym) do nil end end def machine self end def provider_config self end def root_path Pathname.new("./spec/support/foo") end def domain_name #noop end def libvirt_compute OpenStruct.new(servers: []) end end
Version data entries
4 entries across 4 versions & 1 rubygems