pacojp-skutil 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/skutil.rb +9 -1
  2. metadata +1 -1
data/lib/skutil.rb CHANGED
@@ -131,6 +131,14 @@ BODY
131
131
  def self.df
132
132
  `/bin/df -h`.chomp
133
133
  end
134
+
135
+ def self.ps
136
+ `/bin/ps -ef`.chomp
137
+ end
138
+
139
+ def self.netstat
140
+ `/usr/sbin/netstat -an`.chomp
141
+ end
134
142
 
135
143
  def self.execute(command)
136
144
  `#{command}`.chomp
@@ -142,7 +150,7 @@ BODY
142
150
  self_methods.delete("execute")
143
151
  st = ""
144
152
  self_methods.each do |method|
145
- st << "#{method}:\n #{self.send(method).to_s.split("\n").join(" \n")}\n"
153
+ st << "#{method}:\n #{self.send(method).to_s.split("\n").join("\n ")}\n"
146
154
  end
147
155
  return st
148
156
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pacojp-skutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - paco