Sha256: 24c563115ec7becf9e18534c20c391d52a97a971e3845e8f0d2e3586a0db254b
Contents?: true
Size: 408 Bytes
Versions: 8
Compression:
Stored size: 408 Bytes
Contents
require 'yacli' require 'json' require 'erb' module Yacli class Run < Base def initialize(opt = {}) log_path = !opt['log-path'].nil? ? opt['log-path'] : nil @log = init_logger(log_path) @log.debug "opt: #{opt.inspect}" end def go(cmd = 'uname -a') @log.debug "cmd: #{cmd}" output = pass_cli cmd @log.info "output: #{output}" output end end end
Version data entries
8 entries across 8 versions & 1 rubygems