Module: Jekyll::LastModifiedAt::Executor

Defined in:
lib/jekyll-last-modified-at/executor.rb

Class Method Summary collapse

Class Method Details

.sh(*args) ⇒ Object



9
10
11
12
# File 'lib/jekyll-last-modified-at/executor.rb', line 9

def sh(*args)
  stdout_str, stderr_str, status = Open3.capture3(*args)
  "#{stdout_str} #{stderr_str}".strip if status.success?
end