Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/grably/core/commands/run.rb

Overview

Ruby array extensions

Instance Method Summary collapse

Instance Method Details

#run(&block) ⇒ Object

Run array content as shell command



4
5
6
# File 'lib/grably/core/commands/run.rb', line 4

def run(&block)
  Grably.run(self, &block)
end

#run_logObject

Run array content as shell command and print it output to STDOUT



14
15
16
# File 'lib/grably/core/commands/run.rb', line 14

def run_log
  Grably.run_log(self)
end

#run_safeObject

Run array content as shell command and handle exception automaticly



9
10
11
# File 'lib/grably/core/commands/run.rb', line 9

def run_safe
  Grably.run_safe(self)
end