Class: Renuo::Cli::Commands::CreateDeploioObjectStorage

Inherits:
Object
  • Object
show all
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

Methods included from CommandHelper

#open_path, #run_command

Constructor Details

#initializeCreateDeploioObjectStorage

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

#runObject



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