Sha256: 95ac85a436ed5af2b8062642fdf14db6f3f568377c28a23a3e549f1230a078ba

Contents?: true

Size: 412 Bytes

Versions: 22

Compression:

Stored size: 412 Bytes

Contents

module Overcloud
  module Image

    def list_images
      service('Image').images
    end

    def find_image_by_name(image_name)
      service('Image').images.find{|image| image.name == image_name}
    end

    def get_baremetal_deploy_kernel_image
      find_image_by_name('bm-deploy-kernel')
    end

    def get_baremetal_deploy_ramdisk_image
      find_image_by_name('bm-deploy-ramdisk')
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
egon-1.1.0 lib/egon/overcloud/undercloud_handle/image.rb
egon-1.0.0 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.8 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.7 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.6 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.5 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.4 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.3 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.2 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.1 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.4.0 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.3.6 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.3.5 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.3.4 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.3.3 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.3.2 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.3.1 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.3.0 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.2.0 lib/egon/overcloud/undercloud_handle/image.rb
egon-0.1.0 lib/egon/overcloud/undercloud_handle/image.rb