Sha256: 7488d96a24433a578b48acdf7e8b403934f58095007fcc58b1ab2b3c2e704304

Contents?: true

Size: 235 Bytes

Versions: 17

Compression:

Stored size: 235 Bytes

Contents

module Inch
  module Utils
    module ShellHelper
      def git(dir, command)
        Dir.chdir(dir) do
          out = sh("git #{command}")
        end
      end

      def sh(command)
        `#{command}`
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
inch-0.5.0.rc3 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc2 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc1 lib/inch/utils/shell_helper.rb
inch-0.4.6 lib/inch/utils/shell_helper.rb
inch-0.4.5 lib/inch/utils/shell_helper.rb
inch-0.4.4 lib/inch/utils/shell_helper.rb
inch-0.4.4.rc4 lib/inch/utils/shell_helper.rb
inch-0.4.4.rc3 lib/inch/utils/shell_helper.rb
inch-0.4.4.rc2 lib/inch/utils/shell_helper.rb
inch-0.4.4.rc1 lib/inch/utils/shell_helper.rb
inch-0.4.3 lib/inch/utils/shell_helper.rb
inch-0.4.3.rc2 lib/inch/utils/shell_helper.rb
inch-0.4.3.rc1 lib/inch/utils/shell_helper.rb
inch-0.4.2 lib/inch/utils/shell_helper.rb
inch-0.4.1 lib/inch/utils/shell_helper.rb
inch-0.4.0 lib/inch/utils/shell_helper.rb
inch-0.4.0.rc3 lib/inch/utils/shell_helper.rb