Class: Avm::Sync

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/sync.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#excludesObject (readonly)

Returns the value of attribute excludes.



7
8
9
# File 'lib/avm/sync.rb', line 7

def excludes
  @excludes
end

#includesObject (readonly)

Returns the value of attribute includes.



7
8
9
# File 'lib/avm/sync.rb', line 7

def includes
  @includes
end

Instance Method Details

#add_exclude(exclude) ⇒ Object



21
22
23
24
25
# File 'lib/avm/sync.rb', line 21

def add_exclude(exclude)
  excludes << exclude

  self
end

#add_excludes(*excludes) ⇒ Object



27
28
29
30
31
# File 'lib/avm/sync.rb', line 27

def add_excludes(*excludes)
  excludes.each { |exclude| add_exclude(exclude) }

  self
end

#add_include(include) ⇒ Object



33
34
35
36
37
# File 'lib/avm/sync.rb', line 33

def add_include(include)
  includes << include

  self
end

#add_includes(*includes) ⇒ Object



39
40
41
42
43
# File 'lib/avm/sync.rb', line 39

def add_includes(*includes)
  includes.each { |include| add_include(include) }

  self
end

#move_mode(value) ⇒ Object



45
46
47
48
49
# File 'lib/avm/sync.rb', line 45

def move_mode(value)
  @move_mode = value

  self
end

#move_mode?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/avm/sync.rb', line 51

def move_mode?
  @move_mode ? true : false
end

#runObject



16
17
18
19
# File 'lib/avm/sync.rb', line 16

def run
  clear_target
  copy
end