Class: BackupRepos::CLI::Setup
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options) ⇒ Setup
constructor
A new instance of Setup.
Constructor Details
#initialize(options) ⇒ Setup
Returns a new instance of Setup.
6 7 8 9 |
# File 'lib/backup_repos/cli/setup.rb', line 6 def initialize() @options = @config = {} end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/backup_repos/cli/setup.rb', line 4 def config @config end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/backup_repos/cli/setup.rb', line 4 def @options end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 |
# File 'lib/backup_repos/cli/setup.rb', line 11 def call configure_backup_directory configure_providers write_config end |