13 lines
251 B
Ruby
13 lines
251 B
Ruby
actions :set
|
|
|
|
default_action :set
|
|
|
|
attribute :pid, :kind_of => [String, Integer], :name_attribute => true
|
|
attribute :cpu, :kind_of => [String, Integer], :required => true
|
|
|
|
# Covers 0.10.8 and earlier
|
|
def initialize(*args)
|
|
super
|
|
@action = :set
|
|
end
|