Class: Backup::Manager::TaskDefinition

Inherits:
Struct
  • Object
show all
Defined in:
lib/backup/manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cleanup_pathObject

Returns the value of attribute cleanup_path

Returns:

  • (Object)

    the current value of cleanup_path



23
24
25
# File 'lib/backup/manager.rb', line 23

def cleanup_path
  @cleanup_path
end

#destination_optionalObject

Returns the value of attribute destination_optional

Returns:

  • (Object)

    the current value of destination_optional



23
24
25
# File 'lib/backup/manager.rb', line 23

def destination_optional
  @destination_optional
end

#destination_pathObject

Returns the value of attribute destination_path

Returns:

  • (Object)

    the current value of destination_path



23
24
25
# File 'lib/backup/manager.rb', line 23

def destination_path
  @destination_path
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



23
24
25
# File 'lib/backup/manager.rb', line 23

def enabled
  @enabled
end

#human_nameObject

Returns the value of attribute human_name

Returns:

  • (Object)

    the current value of human_name



23
24
25
# File 'lib/backup/manager.rb', line 23

def human_name
  @human_name
end

#taskObject

Returns the value of attribute task

Returns:

  • (Object)

    the current value of task



23
24
25
# File 'lib/backup/manager.rb', line 23

def task
  @task
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/backup/manager.rb', line 32

def enabled?
  enabled.nil? || enabled
end