Class: Renuo::Cli::Commands::CreateDeploioObjectStorage
- Inherits:
-
Object
- Object
- Renuo::Cli::Commands::CreateDeploioObjectStorage
- Includes:
- CommandHelper
- Defined in:
- lib/renuo/cli/commands/create_deploio_object_storage.rb
Overview
:nocov:
Constant Summary collapse
- BRANCHES =
%w[main develop].freeze
Instance Method Summary collapse
-
#initialize ⇒ CreateDeploioObjectStorage
constructor
A new instance of CreateDeploioObjectStorage.
- #run ⇒ Object
Methods included from CommandHelper
Constructor Details
#initialize ⇒ CreateDeploioObjectStorage
Returns a new instance of CreateDeploioObjectStorage.
30 31 32 33 |
# File 'lib/renuo/cli/commands/create_deploio_object_storage.rb', line 30 def initialize @project_name = ask('Project name (eg: "renuo-mtextur"): ') { |q| q.validate = /.+/ } @location = ask('Location (Default: "nine-es34"): ') { |q| q.default = "nine-es34" } end |
Instance Method Details
#run ⇒ Object
37 38 39 40 41 42 |
# File 'lib/renuo/cli/commands/create_deploio_object_storage.rb', line 37 def run BRANCHES.each do |branch| print_setup_commands(branch) end print_active_storage_config end |