summaryrefslogtreecommitdiffstats
path: root/lib/blink/objects/process.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-04-14 04:49:28 +0000
committerLuke Kanies <luke@madstop.com>2005-04-14 04:49:28 +0000
commitc6755f5f30be79ddb42c0afc4d89be42a2df47f9 (patch)
tree0ff0ccc7d1b013680346bba10c7d5216ea693ad7 /lib/blink/objects/process.rb
parente5676ab347399a1f32e77bf4f64eaa73d54a895b (diff)
adding class collection and naming stuff
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@149 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/blink/objects/process.rb')
-rw-r--r--lib/blink/objects/process.rb46
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/blink/objects/process.rb b/lib/blink/objects/process.rb
index 182667d7c..e2e5722fc 100644
--- a/lib/blink/objects/process.rb
+++ b/lib/blink/objects/process.rb
@@ -7,29 +7,6 @@ require 'blink/operation/processes'
# I'm only working on services, not processes, right now
module Blink
- class Objects
- class BProcess < Objects
- attr_reader :stat, :path
- @params = [:start, :stop, :user, :pattern, :binary, :arguments] # class instance variable
-
- @objects = Hash.new
- @namevar = :pattern
-
- Blink::Relation.new(self, Blink::Operation::Start, {
- :user => :user,
- :pattern => :pattern,
- :binary => :binary,
- :arguments => :arguments
- })
-
- Blink::Relation.new(self, Blink::Operation::Stop, {
- :user => :user,
- :pattern => :pattern
- })
-
- end # Blink::Objects::BProcess
- end # Blink::Objects
-
class Attribute
class ProcessRunning < Attribute
def retrieve
@@ -83,4 +60,27 @@ module Blink
end
end
end
+ class Objects
+ class BProcess < Objects
+ attr_reader :stat, :path
+ @params = [:start, :stop, :user, :pattern, :binary, :arguments]
+ @name = :process
+
+ @namevar = :pattern
+
+ Blink::Relation.new(self, Blink::Operation::Start, {
+ :user => :user,
+ :pattern => :pattern,
+ :binary => :binary,
+ :arguments => :arguments
+ })
+
+ Blink::Relation.new(self, Blink::Operation::Stop, {
+ :user => :user,
+ :pattern => :pattern
+ })
+
+ end # Blink::Objects::BProcess
+ end # Blink::Objects
+
end