Sha256: 07f9810c28cb3afd6f102cab73e4d6a916263200de2de2a25ee6b36db8336973

Contents?: true

Size: 565 Bytes

Versions: 49

Compression:

Stored size: 565 Bytes

Contents

class Specinfra::Command::Clearlinux::Base::Package < Specinfra::Command::Linux::Base::Package
  class << self
    def check_is_installed(package, version=nil)
      "swupd bundle-list --quiet | grep -w #{escape(package)}"
    end

    alias :check_is_installed_by_swupd :check_is_installed

    def get_version(package, opts=nil)
      "true"
    end

    def install(package, version=nil, option='')
      "swupd bundle-add --quiet #{package}"
    end

    def remove(package, option='')
      "swupd bundle-remove --quiet #{option} #{package}"
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
specinfra-2.91.0 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.90.1 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.90.0 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.89.0 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.88.2 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.88.1 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.88.0 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.87.2 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.87.1 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.87.0 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.86.0 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.85.1 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.85.0 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.84.1 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.84.0 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.83.4 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.83.3 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.83.2 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.83.1 lib/specinfra/command/clearlinux/base/package.rb
specinfra-2.83.0 lib/specinfra/command/clearlinux/base/package.rb