Class: Bundler::GemBytes::BundlerCommand

Inherits:
Plugin::API
  • Object
show all
Defined in:
lib/bundler/gem_bytes/bundler_command.rb

Overview

A bundler command that adds features to your existing Ruby Gems project

Instance Method Summary collapse

Instance Method Details

#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