Class: Specinfra::Command::Clearlinux::Base::Package
Class Method Summary
collapse
check_is_installed_by_cpan, check_is_installed_by_gem, check_is_installed_by_npm, check_is_installed_by_pear, check_is_installed_by_pecl, check_is_installed_by_pip, check_is_installed_by_pip2, check_is_installed_by_pip3, check_is_installed_by_rvm, check_is_installed_by_td_agent_gem
Methods inherited from Base
create, escape
Class Method Details
.check_is_installed(package, version = nil) ⇒ Object
Also known as:
check_is_installed_by_swupd
3
4
5
|
# File 'lib/specinfra/command/clearlinux/base/package.rb', line 3
def check_is_installed(package, version=nil)
"swupd bundle-list --quiet | grep -w #{escape(package)}"
end
|
.get_version(package, opts = nil) ⇒ Object
9
10
11
|
# File 'lib/specinfra/command/clearlinux/base/package.rb', line 9
def get_version(package, opts=nil)
"true"
end
|
.install(package, version = nil, option = '') ⇒ Object
13
14
15
|
# File 'lib/specinfra/command/clearlinux/base/package.rb', line 13
def install(package, version=nil, option='')
"swupd bundle-add --quiet #{package}"
end
|
.remove(package, option = '') ⇒ Object
17
18
19
|
# File 'lib/specinfra/command/clearlinux/base/package.rb', line 17
def remove(package, option='')
"swupd bundle-remove --quiet #{option} #{package}"
end
|