Sha256: 4004606aa356adf6792d76fb754270be743b508d1ac9f7f32fece964688bedf0

Contents?: true

Size: 1.03 KB

Versions: 16

Compression:

Stored size: 1.03 KB

Contents

# Copyright (c) 2013-2015 SUSE LLC
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 3 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, contact SUSE LLC.
#
# To contact SUSE about this file by physical or electronic mail,
# you may find current contact information at www.suse.com

#  This renderer prints the operating system
class OsRenderer < Renderer
  def content(description)
    return unless description.os

    puts "Name: #{description.os.name}"
    puts "Version: #{description.os.version}"
    puts "Architecture: #{description.os.architecture}"
  end

  def display_name
    "Operating system"
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
machinery-tool-1.17.0 plugins/os/os_renderer.rb
machinery-tool-1.16.4 plugins/os/os_renderer.rb
machinery-tool-1.16.3 plugins/os/os_renderer.rb
machinery-tool-1.16.2 plugins/os/os_renderer.rb
machinery-tool-1.16.1 plugins/os/os_renderer.rb
machinery-tool-1.16.0 plugins/os/os_renderer.rb
machinery-tool-1.15.0 plugins/os/os_renderer.rb
machinery-tool-1.14.2 plugins/os/os_renderer.rb
machinery-tool-1.14.1 plugins/os/os_renderer.rb
machinery-tool-1.14.0 plugins/os/os_renderer.rb
machinery-tool-1.13.0 plugins/os/os_renderer.rb
machinery-tool-1.12.0 plugins/os/os_renderer.rb
machinery-tool-1.11.2 plugins/os/os_renderer.rb
machinery-tool-1.11.1 plugins/os/os_renderer.rb
machinery-tool-1.11.0 plugins/os/os_renderer.rb
machinery-tool-1.10.0 plugins/os/os_renderer.rb