Method: AllImages::App#initialize
- Defined in:
- lib/all_images/app.rb
#initialize(args) ⇒ App
Initializes a new instance of the AllImages application
Sets up the application with the provided command-line arguments, determines the initial command to execute, and prepares internal state for processing configuration and Docker image operations.
application
34 35 36 37 38 39 40 |
# File 'lib/all_images/app.rb', line 34 def initialize(args) @args = args.dup @config = load_config or return 23 @command = pick_command @commands = %w[ ls help run debug run_all ].sort @suffix = Tins::Token.new(alphabet: Tins::Token::BASE32_ALPHABET, bits: 32) end |