Sha256: f64b7d95e2060700ce9e2c871f9a6dd5d552dff56e2f30e2699fd212a97154b6
Contents?: true
Size: 577 Bytes
Versions: 6
Compression:
Stored size: 577 Bytes
Contents
require 'cap-util/version' require 'cap-util/say' require 'cap-util/halt' require 'cap-util/run' require 'cap-util/time' require 'cap-util/unset_var' module CapUtil def self.included(receiver) receiver.send(:attr_accessor, :cap) receiver.send(:include, CapUtil::Say) receiver.send(:include, CapUtil::Halt) receiver.send(:include, CapUtil::Run) receiver.send(:include, CapUtil::Time) end def get(*args, &block) cap.get(*args, &block) end def hostname val = "" run("hostname") {|ch, stream, out| val = out.strip} val end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
cap-util-1.5.2 | lib/cap-util.rb |
cap-util-1.5.1 | lib/cap-util.rb |
cap-util-1.5.0 | lib/cap-util.rb |
cap-util-1.4.0 | lib/cap-util.rb |
cap-util-1.3.0 | lib/cap-util.rb |
cap-util-1.2.0 | lib/cap-util.rb |