Method: Bundler::GemBytes::BundlerCommand#exec

Defined in:
lib/bundler/gem_bytes/bundler_command.rb

#exec(_command, args) ⇒ void

This method returns an undefined value.

Executes the gem-bytes command

Examples:

BundlerCommand.new.exec('gem-bytes', ['uri_or_path', *extra_args])

Parameters:

  • _command (String)

    the invoked bundler command (in this case, ‘gem-bytes’)

  • args (Array<String>)

    command arguments

Raises:

  • (SystemExit)

    if an error occurs



18
19
20
21
# File 'lib/bundler/gem_bytes/bundler_command.rb', line 18

def exec(_command, args)
  uri_or_path = validate_args(args)
  execute_script(uri_or_path)
end