Module: DatadogBackup::Options
Instance Method Summary collapse
- #action ⇒ Object
- #backup_dir ⇒ Object
- #client ⇒ Object
- #concurrency_limit ⇒ Object
- #datadog_api_key ⇒ Object
- #datadog_app_key ⇒ Object
- #diff_format ⇒ Object
- #force_restore ⇒ Object
- #logger ⇒ Object
-
#output_format ⇒ Object
Either :json or :yaml.
- #resources ⇒ Object
Instance Method Details
#action ⇒ Object
5 6 7 |
# File 'lib/datadog_backup/options.rb', line 5 def action @options[:action] end |
#backup_dir ⇒ Object
9 10 11 |
# File 'lib/datadog_backup/options.rb', line 9 def backup_dir @options[:backup_dir] end |
#client ⇒ Object
13 14 15 |
# File 'lib/datadog_backup/options.rb', line 13 def client @options[:client] end |
#concurrency_limit ⇒ Object
17 18 19 |
# File 'lib/datadog_backup/options.rb', line 17 def concurrency_limit @options[:concurrency_limit] | 2 end |
#datadog_api_key ⇒ Object
21 22 23 |
# File 'lib/datadog_backup/options.rb', line 21 def datadog_api_key @options[:datadog_api_key] end |
#datadog_app_key ⇒ Object
25 26 27 |
# File 'lib/datadog_backup/options.rb', line 25 def datadog_app_key @options[:datadog_app_key] end |
#diff_format ⇒ Object
29 30 31 |
# File 'lib/datadog_backup/options.rb', line 29 def diff_format @options[:diff_format] end |
#force_restore ⇒ Object
46 47 48 |
# File 'lib/datadog_backup/options.rb', line 46 def force_restore @options[:force_restore] end |
#logger ⇒ Object
33 34 35 |
# File 'lib/datadog_backup/options.rb', line 33 def logger @options[:logger] end |
#output_format ⇒ Object
Either :json or :yaml
38 39 40 |
# File 'lib/datadog_backup/options.rb', line 38 def output_format @options[:output_format] end |
#resources ⇒ Object
42 43 44 |
# File 'lib/datadog_backup/options.rb', line 42 def resources @options[:resources] end |