Class: Bundler::AutoUpdate::CommandRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler_auto_update.rb

Overview

class Dependency

Class Method Summary collapse

Class Method Details

.run(cmd) ⇒ Object

Run a system command and return its output.



290
291
292
# File 'lib/bundler_auto_update.rb', line 290

def self.run(cmd)
  `#{cmd}`
end

.system(cmd) ⇒ Object

Output the command about to run, and run it using system.

Returns:

  • true on success, false on failure



283
284
285
286
287
# File 'lib/bundler_auto_update.rb', line 283

def self.system(cmd)
  Logger.log_cmd cmd

  Kernel.system cmd
end