Class: Rake::ProcessStatusLine
- Inherits:
-
Struct
- Object
- Struct
- Rake::ProcessStatusLine
- Defined in:
- lib/only_one_rake.rb
Instance Attribute Summary collapse
-
#c ⇒ Object
Returns the value of attribute c.
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#ppid ⇒ Object
Returns the value of attribute ppid.
-
#stime ⇒ Object
Returns the value of attribute stime.
-
#time ⇒ Object
Returns the value of attribute time.
-
#tty ⇒ Object
Returns the value of attribute tty.
-
#uid ⇒ Object
Returns the value of attribute uid.
Instance Method Summary collapse
Instance Attribute Details
#c ⇒ Object
Returns the value of attribute c
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def c @c end |
#cmd ⇒ Object
Returns the value of attribute cmd
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def cmd @cmd end |
#pid ⇒ Object
Returns the value of attribute pid
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def pid @pid end |
#ppid ⇒ Object
Returns the value of attribute ppid
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def ppid @ppid end |
#stime ⇒ Object
Returns the value of attribute stime
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def stime @stime end |
#time ⇒ Object
Returns the value of attribute time
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def time @time end |
#tty ⇒ Object
Returns the value of attribute tty
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def tty @tty end |
#uid ⇒ Object
Returns the value of attribute uid
4 5 6 |
# File 'lib/only_one_rake.rb', line 4 def uid @uid end |
Instance Method Details
#namespace_equal?(namespace) ⇒ Boolean
5 6 7 |
# File 'lib/only_one_rake.rb', line 5 def namespace_equal? namespace self.cmd.split.select {|i| i.match(/:/) }[0] == namespace end |
#working_dir_equal?(working_dir) ⇒ Boolean
9 10 11 |
# File 'lib/only_one_rake.rb', line 9 def working_dir_equal? working_dir !!(`lsof -p #{self.pid} | grep cwd | grep DIR`.split[-1].match(working_dir)) end |