Module: Kanrisuru

Defined in:
lib/kanrisuru.rb,
lib/kanrisuru/core.rb,
lib/kanrisuru/mode.rb,
lib/kanrisuru/util.rb,
lib/kanrisuru/logger.rb,
lib/kanrisuru/result.rb,
lib/kanrisuru/command.rb,
lib/kanrisuru/core/ip.rb,
lib/kanrisuru/version.rb,
lib/kanrisuru/core/apt.rb,
lib/kanrisuru/core/dmi.rb,
lib/kanrisuru/core/yum.rb,
lib/kanrisuru/template.rb,
lib/kanrisuru/core/disk.rb,
lib/kanrisuru/core/file.rb,
lib/kanrisuru/core/find.rb,
lib/kanrisuru/core/path.rb,
lib/kanrisuru/core/stat.rb,
lib/kanrisuru/core/user.rb,
lib/kanrisuru/remote/os.rb,
lib/kanrisuru/util/bits.rb,
lib/kanrisuru/core/group.rb,
lib/kanrisuru/core/mount.rb,
lib/kanrisuru/remote/cpu.rb,
lib/kanrisuru/remote/env.rb,
lib/kanrisuru/core/socket.rb,
lib/kanrisuru/core/stream.rb,
lib/kanrisuru/core/system.rb,
lib/kanrisuru/core/zypper.rb,
lib/kanrisuru/remote/file.rb,
lib/kanrisuru/remote/host.rb,
lib/kanrisuru/util/signal.rb,
lib/kanrisuru/core/archive.rb,
lib/kanrisuru/remote/fstab.rb,
lib/kanrisuru/core/ip/types.rb,
lib/kanrisuru/core/transfer.rb,
lib/kanrisuru/remote/memory.rb,
lib/kanrisuru/util/dmi_type.rb,
lib/kanrisuru/core/apt/types.rb,
lib/kanrisuru/core/dmi/types.rb,
lib/kanrisuru/core/yum/types.rb,
lib/kanrisuru/remote/cluster.rb,
lib/kanrisuru/util/os_family.rb,
lib/kanrisuru/core/disk/types.rb,
lib/kanrisuru/core/file/types.rb,
lib/kanrisuru/core/find/types.rb,
lib/kanrisuru/core/path/types.rb,
lib/kanrisuru/core/stat/types.rb,
lib/kanrisuru/core/user/types.rb,
lib/kanrisuru/mode/permission.rb,
lib/kanrisuru/processor_count.rb,
lib/kanrisuru/core/group/types.rb,
lib/kanrisuru/core/ip/commands.rb,
lib/kanrisuru/core/ip/constants.rb,
lib/kanrisuru/core/socket/types.rb,
lib/kanrisuru/core/system/types.rb,
lib/kanrisuru/core/yum/commands.rb,
lib/kanrisuru/core/zypper/types.rb,
lib/kanrisuru/os_package/define.rb,
lib/kanrisuru/core/archive/types.rb,
lib/kanrisuru/core/file/commands.rb,
lib/kanrisuru/os_package/include.rb,
lib/kanrisuru/remote/fstab/entry.rb,
lib/kanrisuru/util/fs_mount_opts.rb,
lib/kanrisuru/core/disk/constants.rb,
lib/kanrisuru/core/find/constants.rb,
lib/kanrisuru/core/mount/commands.rb,
lib/kanrisuru/core/disk/parsers/df.rb,
lib/kanrisuru/core/disk/parsers/du.rb,
lib/kanrisuru/core/dmi/parsers/dmi.rb,
lib/kanrisuru/core/file/parsers/wc.rb,
lib/kanrisuru/core/ip/parsers/base.rb,
lib/kanrisuru/core/ip/parsers/link.rb,
lib/kanrisuru/core/ip/parsers/rule.rb,
lib/kanrisuru/core/path/parsers/ls.rb,
lib/kanrisuru/core/stream/commands.rb,
lib/kanrisuru/core/system/commands.rb,
lib/kanrisuru/core/zypper/commands.rb,
lib/kanrisuru/remote/fstab/options.rb,
lib/kanrisuru/core/apt/parsers/base.rb,
lib/kanrisuru/core/apt/parsers/list.rb,
lib/kanrisuru/core/apt/parsers/show.rb,
lib/kanrisuru/core/disk/commands/df.rb,
lib/kanrisuru/core/disk/commands/du.rb,
lib/kanrisuru/core/dmi/commands/dmi.rb,
lib/kanrisuru/core/file/commands/rm.rb,
lib/kanrisuru/core/file/commands/wc.rb,
lib/kanrisuru/core/ip/commands/link.rb,
lib/kanrisuru/core/ip/commands/rule.rb,
lib/kanrisuru/core/ip/parsers/route.rb,
lib/kanrisuru/core/path/commands/ls.rb,
lib/kanrisuru/core/socket/constants.rb,
lib/kanrisuru/core/system/parsers/w.rb,
lib/kanrisuru/core/yum/parsers/base.rb,
lib/kanrisuru/core/yum/parsers/info.rb,
lib/kanrisuru/core/yum/parsers/list.rb,
lib/kanrisuru/core/zypper/constants.rb,
lib/kanrisuru/os_package/collection.rb,
lib/kanrisuru/core/apt/commands/list.rb,
lib/kanrisuru/core/apt/commands/show.rb,
lib/kanrisuru/core/find/parsers/find.rb,
lib/kanrisuru/core/group/parsers/gid.rb,
lib/kanrisuru/core/ip/commands/route.rb,
lib/kanrisuru/core/path/commands/pwd.rb,
lib/kanrisuru/core/socket/parsers/ss.rb,
lib/kanrisuru/core/stat/parsers/stat.rb,
lib/kanrisuru/core/system/commands/w.rb,
lib/kanrisuru/core/system/parsers/ps.rb,
lib/kanrisuru/core/user/parsers/user.rb,
lib/kanrisuru/core/yum/commands/info.rb,
lib/kanrisuru/core/yum/commands/list.rb,
lib/kanrisuru/core/apt/commands/clean.rb,
lib/kanrisuru/core/apt/commands/purge.rb,
lib/kanrisuru/core/apt/parsers/search.rb,
lib/kanrisuru/core/disk/parsers/blkid.rb,
lib/kanrisuru/core/disk/parsers/lsblk.rb,
lib/kanrisuru/core/file/commands/copy.rb,
lib/kanrisuru/core/file/commands/link.rb,
lib/kanrisuru/core/file/commands/move.rb,
lib/kanrisuru/core/find/commands/find.rb,
lib/kanrisuru/core/ip/parsers/address.rb,
lib/kanrisuru/core/ip/parsers/version.rb,
lib/kanrisuru/core/path/parsers/which.rb,
lib/kanrisuru/core/socket/commands/ss.rb,
lib/kanrisuru/core/stat/commands/stat.rb,
lib/kanrisuru/core/stream/parsers/sed.rb,
lib/kanrisuru/core/system/commands/ps.rb,
lib/kanrisuru/core/transfer/constants.rb,
lib/kanrisuru/core/yum/commands/clean.rb,
lib/kanrisuru/core/yum/commands/erase.rb,
lib/kanrisuru/core/yum/parsers/search.rb,
lib/kanrisuru/core/apt/commands/remove.rb,
lib/kanrisuru/core/apt/commands/search.rb,
lib/kanrisuru/core/apt/commands/update.rb,
lib/kanrisuru/core/disk/commands/blkid.rb,
lib/kanrisuru/core/disk/commands/lsblk.rb,
lib/kanrisuru/core/file/commands/chmod.rb,
lib/kanrisuru/core/file/commands/chown.rb,
lib/kanrisuru/core/file/commands/mkdir.rb,
lib/kanrisuru/core/file/commands/touch.rb,
lib/kanrisuru/core/group/parsers/group.rb,
lib/kanrisuru/core/ip/commands/address.rb,
lib/kanrisuru/core/ip/parsers/maddress.rb,
lib/kanrisuru/core/path/commands/which.rb,
lib/kanrisuru/core/stream/commands/cat.rb,
lib/kanrisuru/core/stream/commands/sed.rb,
lib/kanrisuru/core/stream/parsers/echo.rb,
lib/kanrisuru/core/system/parsers/last.rb,
lib/kanrisuru/core/system/parsers/lsof.rb,
lib/kanrisuru/core/user/parsers/getent.rb,
lib/kanrisuru/core/user/parsers/groups.rb,
lib/kanrisuru/core/yum/commands/remove.rb,
lib/kanrisuru/core/yum/commands/search.rb,
lib/kanrisuru/core/yum/commands/update.rb,
lib/kanrisuru/core/zypper/parsers/base.rb,
lib/kanrisuru/core/zypper/parsers/info.rb,
lib/kanrisuru/core/apt/commands/install.rb,
lib/kanrisuru/core/apt/commands/upgrade.rb,
lib/kanrisuru/core/archive/commands/tar.rb,
lib/kanrisuru/core/file/commands/unlink.rb,
lib/kanrisuru/core/ip/commands/maddress.rb,
lib/kanrisuru/core/ip/parsers/neighbour.rb,
lib/kanrisuru/core/mount/commands/mount.rb,
lib/kanrisuru/core/path/commands/whoami.rb,
lib/kanrisuru/core/stream/commands/echo.rb,
lib/kanrisuru/core/stream/commands/head.rb,
lib/kanrisuru/core/stream/commands/tail.rb,
lib/kanrisuru/core/system/commands/free.rb,
lib/kanrisuru/core/system/commands/kill.rb,
lib/kanrisuru/core/system/commands/last.rb,
lib/kanrisuru/core/system/commands/lsof.rb,
lib/kanrisuru/core/system/parsers/lscpu.rb,
lib/kanrisuru/core/yum/commands/install.rb,
lib/kanrisuru/core/yum/commands/upgrade.rb,
lib/kanrisuru/core/yum/parsers/repolist.rb,
lib/kanrisuru/core/zypper/commands/info.rb,
lib/kanrisuru/core/file/commands/symlink.rb,
lib/kanrisuru/core/ip/commands/neighbour.rb,
lib/kanrisuru/core/mount/commands/umount.rb,
lib/kanrisuru/core/system/commands/lscpu.rb,
lib/kanrisuru/core/system/commands/nproc.rb,
lib/kanrisuru/core/system/parsers/sysctl.rb,
lib/kanrisuru/core/system/parsers/uptime.rb,
lib/kanrisuru/core/user/commands/get_uid.rb,
lib/kanrisuru/core/user/commands/is_user.rb,
lib/kanrisuru/core/yum/commands/repolist.rb,
lib/kanrisuru/core/zypper/commands/patch.rb,
lib/kanrisuru/core/zypper/parsers/search.rb,
lib/kanrisuru/core/apt/commands/autoclean.rb,
lib/kanrisuru/core/group/commands/get_gid.rb,
lib/kanrisuru/core/path/commands/readlink.rb,
lib/kanrisuru/core/path/commands/realpath.rb,
lib/kanrisuru/core/system/commands/reboot.rb,
lib/kanrisuru/core/system/commands/sysctl.rb,
lib/kanrisuru/core/system/commands/uptime.rb,
lib/kanrisuru/core/system/parsers/history.rb,
lib/kanrisuru/core/transfer/commands/wget.rb,
lib/kanrisuru/core/user/commands/get_user.rb,
lib/kanrisuru/core/zypper/commands/remove.rb,
lib/kanrisuru/core/zypper/commands/search.rb,
lib/kanrisuru/core/zypper/commands/update.rb,
lib/kanrisuru/core/zypper/commands/verify.rb,
lib/kanrisuru/core/apt/commands/autoremove.rb,
lib/kanrisuru/core/group/commands/is_group.rb,
lib/kanrisuru/core/system/commands/history.rb,
lib/kanrisuru/core/system/parsers/load_env.rb,
lib/kanrisuru/core/yum/commands/autoremove.rb,
lib/kanrisuru/core/zypper/commands/install.rb,
lib/kanrisuru/core/group/commands/get_group.rb,
lib/kanrisuru/core/ip/parsers/address_label.rb,
lib/kanrisuru/core/system/commands/cpu_info.rb,
lib/kanrisuru/core/system/commands/load_env.rb,
lib/kanrisuru/core/system/commands/poweroff.rb,
lib/kanrisuru/core/transfer/commands/upload.rb,
lib/kanrisuru/core/zypper/commands/add_lock.rb,
lib/kanrisuru/core/zypper/commands/add_repo.rb,
lib/kanrisuru/core/apt/commands/full_upgrade.rb,
lib/kanrisuru/core/ip/commands/address_label.rb,
lib/kanrisuru/core/ip/commands/link_set_opts.rb,
lib/kanrisuru/core/user/commands/create_user.rb,
lib/kanrisuru/core/user/commands/delete_user.rb,
lib/kanrisuru/core/user/commands/update_user.rb,
lib/kanrisuru/core/yum/commands/localinstall.rb,
lib/kanrisuru/core/zypper/parsers/list_locks.rb,
lib/kanrisuru/core/zypper/parsers/list_repos.rb,
lib/kanrisuru/core/disk/parsers/lsblk_version.rb,
lib/kanrisuru/core/ip/commands/link_type_opts.rb,
lib/kanrisuru/core/transfer/commands/download.rb,
lib/kanrisuru/core/zypper/commands/list_locks.rb,
lib/kanrisuru/core/zypper/commands/list_repos.rb,
lib/kanrisuru/core/zypper/parsers/patch_check.rb,
lib/kanrisuru/core/group/commands/create_group.rb,
lib/kanrisuru/core/group/commands/delete_group.rb,
lib/kanrisuru/core/group/commands/update_group.rb,
lib/kanrisuru/core/system/parsers/load_average.rb,
lib/kanrisuru/core/zypper/commands/add_service.rb,
lib/kanrisuru/core/zypper/commands/clean_cache.rb,
lib/kanrisuru/core/zypper/commands/clean_locks.rb,
lib/kanrisuru/core/zypper/commands/modify_repo.rb,
lib/kanrisuru/core/zypper/commands/patch_check.rb,
lib/kanrisuru/core/zypper/commands/remove_lock.rb,
lib/kanrisuru/core/zypper/commands/remove_repo.rb,
lib/kanrisuru/core/zypper/commands/rename_repo.rb,
lib/kanrisuru/core/zypper/parsers/list_patches.rb,
lib/kanrisuru/core/zypper/parsers/list_updates.rb,
lib/kanrisuru/core/system/commands/load_average.rb,
lib/kanrisuru/core/zypper/commands/dist_upgrade.rb,
lib/kanrisuru/core/zypper/commands/list_patches.rb,
lib/kanrisuru/core/zypper/commands/list_updates.rb,
lib/kanrisuru/core/zypper/parsers/list_services.rb,
lib/kanrisuru/core/zypper/commands/list_services.rb,
lib/kanrisuru/core/zypper/commands/purge_kernels.rb,
lib/kanrisuru/core/zypper/commands/refresh_repos.rb,
lib/kanrisuru/core/zypper/commands/modify_service.rb,
lib/kanrisuru/core/zypper/commands/remove_service.rb,
lib/kanrisuru/core/zypper/commands/source_install.rb,
lib/kanrisuru/core/stream/commands/read_file_chunk.rb,
lib/kanrisuru/core/system/parsers/kernel_statistics.rb,
lib/kanrisuru/core/zypper/commands/refresh_services.rb,
lib/kanrisuru/core/system/commands/kernel_statistics.rb,
lib/kanrisuru/core/zypper/commands/install_new_recommends.rb

Defined Under Namespace

Modules: Core, OsPackage, ProcessorCount, Remote Classes: Command, Error, Logger, Mode, Result, Template, Util

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.loggerObject



39
40
41
42
43
# File 'lib/kanrisuru.rb', line 39

def self.logger
  @logger ||= Kanrisuru::Logger.new($stdout, formatter: proc { |severity, _datetime, _progname, msg|
    "#{severity}: #{msg}\n"
  })
end