Class: EmergeCLI::Commands::Config::SnapshotsIOS

Inherits:
GlobalOptions
  • Object
show all
Defined in:
lib/commands/config/snapshots/snapshots_ios.rb

Constant Summary collapse

EXCLUDED_PREVIEW_PROMPT =

Constants

'Do you want to exclude any previews by exact match?'.freeze
EXCLUDED_PREVIEW_FINISH_PROMPT =
'Enter the previews you want to exclude (leave blank to finish)'.freeze
EXCLUDED_REGEX_PREVIEW_PROMPT =
'Do you want to exclude any previews by regex?'.freeze
EXCLUDED_REGEX_PREVIEW_FINISH_PROMPT =
'Enter the previews you want to exclude (leave blank to finish)'.freeze
ARGUMENTS_PROMPT =
'Do you want to set any arguments?'.freeze
ARGUMENTS_FINISH_PROMPT =
'Enter the argument you want to set (leave blank to finish)'.freeze
ENV_VARIABLES_PROMPT =
'Do you want to set any environment variables?'.freeze
ENV_VARIABLES_FINISH_PROMPT =
"Enter the environment variable you want to set (leave blank to finish) with \
format KEY=VALUE".freeze
AVAILABLE_OS_VERSIONS =
['17.2', '17.5', '18.0'].freeze

Instance Method Summary collapse

Methods inherited from GlobalOptions

#before

Instance Method Details

#call(**options) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/commands/config/snapshots/snapshots_ios.rb', line 42

def call(**options)
  @options = options
  before(options)

  Sync do
    validate_options

    run_interactive_mode if @options[:interactive]

    run_non_interactive_mode if !@options[:interactive]

    Logger.warn 'Remember to copy `emerge_config.yml` to your project XCArchive before uploading it!'
  end
end