Class: Multisync::Definition::Null

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

Instance Attribute Summary

Attributes inherited from Entity

#members, #name, #parent, #result

Instance Method Summary collapse

Methods inherited from Entity

#accept, #to_h

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.



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

def initialize
end

Instance Method Details

#check_destination?Boolean

Returns:

  • (Boolean)


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

def check_destination?
  false
end

#check_source?Boolean

Returns:

  • (Boolean)


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

def check_source?
  false
end

#checksObject



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

def checks
  []
end

#default?Boolean

Returns:

  • (Boolean)


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

def default?
  false
end

#destinationObject

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



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

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

#destination_descriptionObject



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

def destination_description
  ''
end

#fullnameObject



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

def fullname
  nil
end

#register(member) ⇒ Object



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

def register member
end

#rsync_optionsObject



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

def rsync_options
  []
end

#sourceObject

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



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

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

#source_descriptionObject



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

def source_description
  ''
end