Sha256: 82ec86c2aad8e24e2ebad6b3ac7a19b88f5b3cea3fdfc11ab0dc13e9074e6b43

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module TerraspaceBundler::Helper
  module Git
    include TB::Logging

    def sh(command)
      command = "#{command} 2>&1" # always need output for the sha
      logger.debug "=> #{command}"
      out = `#{command}`
      unless $?.success?
        logger.error "ERROR: running #{command}"
        logger.error out
        exit $?.exitstatus
      end
      out
    end

    def git(command)
      sh("git #{command}")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terraspace-bundler-0.1.0 lib/terraspace_bundler/helper/git.rb