Module: Rhosync::Resource::ClassMethods

Defined in:
lib/rhosync/resource.rb

Instance Method Summary collapse

Instance Method Details

#get_partitionObject



18
19
20
# File 'lib/rhosync/resource.rb', line 18

def get_partition
  @partition.is_a?(Proc) ? @partition.call : @partition
end

#partition(p) ⇒ Object



14
15
16
# File 'lib/rhosync/resource.rb', line 14

def partition(p)
  @partition = p
end