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

API:

  • public

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:

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

  • command arguments

Raises:

  • if an error occurs

API:

  • public



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