Module: DatadogBackup::Options
Overview
Describes what the user wants to see done.
Instance Method Summary collapse
- #action ⇒ Object
- #backup_dir ⇒ Object
- #concurrency_limit ⇒ Object
- #diff_format ⇒ Object
- #disable_array_sort ⇒ Object
- #force_restore ⇒ Object
-
#output_format ⇒ Object
Either :json or :yaml.
- #resources ⇒ Object
Instance Method Details
#action ⇒ Object
6 7 8 |
# File 'lib/datadog_backup/options.rb', line 6 def action @options[:action] end |
#backup_dir ⇒ Object
10 11 12 |
# File 'lib/datadog_backup/options.rb', line 10 def backup_dir @options[:backup_dir] end |
#concurrency_limit ⇒ Object
14 15 16 |
# File 'lib/datadog_backup/options.rb', line 14 def concurrency_limit @options[:concurrency_limit] | 2 end |
#diff_format ⇒ Object
18 19 20 |
# File 'lib/datadog_backup/options.rb', line 18 def diff_format @options[:diff_format] end |
#disable_array_sort ⇒ Object
35 36 37 |
# File 'lib/datadog_backup/options.rb', line 35 def disable_array_sort @options[:disable_array_sort] end |
#force_restore ⇒ Object
31 32 33 |
# File 'lib/datadog_backup/options.rb', line 31 def force_restore @options[:force_restore] end |
#output_format ⇒ Object
Either :json or :yaml
23 24 25 |
# File 'lib/datadog_backup/options.rb', line 23 def output_format @options[:output_format] end |
#resources ⇒ Object
27 28 29 |
# File 'lib/datadog_backup/options.rb', line 27 def resources @options[:resources] end |