Class: Multisync::Definition::Null

Inherits:
Entity
  • Object
show all
Defined in:
lib/multisync/definition/null.rb

Instance Attribute Summary

Attributes inherited from Entity

#level, #members, #name, #parent, #result

Instance Method Summary collapse

Methods inherited from Entity

#accept, #executeable?

Methods included from Dsl

#check_from, #check_to, #default, #from, #group, #include, #only_if, #options, #sync, #template, #to

Constructor Details

#initializeNull

Returns a new instance of Null.



2
3
4
# File 'lib/multisync/definition/null.rb', line 2

def initialize
  @level = -1
end

Instance Method Details

#check_destination?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/multisync/definition/null.rb', line 47

def check_destination?
  false
end

#check_source?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/multisync/definition/null.rb', line 43

def check_source?
  false
end

#checksObject



39
40
41
# File 'lib/multisync/definition/null.rb', line 39

def checks
  []
end

#default?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/multisync/definition/null.rb', line 35

def default?
  false
end

#destinationObject

to (destination) is a required option and should be set at least at root level



27
28
29
# File 'lib/multisync/definition/null.rb', line 27

def destination
  raise "no destination (to) defined"
end

#destination_descriptionObject



31
32
33
# File 'lib/multisync/definition/null.rb', line 31

def destination_description
  ""
end

#fullnameObject



9
10
11
# File 'lib/multisync/definition/null.rb', line 9

def fullname
  ""
end

#register(member) ⇒ Object



6
7
# File 'lib/multisync/definition/null.rb', line 6

def register member
end

#rsync_optionsObject



13
14
15
# File 'lib/multisync/definition/null.rb', line 13

def rsync_options
  []
end

#sourceObject

from (source) is a required option and should be set at least at root level



18
19
20
# File 'lib/multisync/definition/null.rb', line 18

def source
  raise "no source (from) defined"
end

#source_descriptionObject



22
23
24
# File 'lib/multisync/definition/null.rb', line 22

def source_description
  ""
end