Class: Arver::TestPartition

Inherits:
Partition show all
Defined in:
lib/arver/test_partition.rb

Instance Attribute Summary

Attributes inherited from Partition

#device

Attributes included from NodeWithScriptHooks

#post_close, #post_open, #pre_close, #pre_open

Attributes included from PartitionHierarchyNode

#name, #parent

Instance Method Summary collapse

Methods inherited from Partition

#==, #device_path, #each_partition, #from_hash, #pre_execute, #run_action, #to_yaml

Methods included from NodeWithScriptHooks

#script_hooks_from_hash, #script_hooks_to_yaml

Methods included from PartitionHierarchyNode

#==, #add_child, #child, #children, #each_node, #each_partition, #find, #has_child?, #has_parent?, #path, #run_action, #target?, #to_ascii, #to_yaml

Constructor Details

#initialize(name) ⇒ TestPartition

Returns a new instance of TestPartition.



4
5
6
# File 'lib/arver/test_partition.rb', line 4

def initialize(name)
  super(name,Arver::Host.new('foo.host',Arver::Hostgroup.new('foo')))
end