class Jekyll::VersionPlugin::Tag::SystemWrapper

A wrapper around system calls; mock/stub this in testing

Public Instance Methods

command_succeeded?() click to toggle source
# File lib/jekyll_version_plugin.rb, line 21
def command_succeeded?
  !$?.nil? && $?.success?
end
git_repo?() click to toggle source
# File lib/jekyll_version_plugin.rb, line 25
def git_repo?
  system("git rev-parse")
end
run(command) click to toggle source
# File lib/jekyll_version_plugin.rb, line 17
def run(command)
  `#{command}`
end