Sha256: 0b5abac6231dc8d075400a38486a953c4f34f56484435ab35d9249a50264b1a3

Contents?: true

Size: 229 Bytes

Versions: 40

Compression:

Stored size: 229 Bytes

Contents

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

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

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 lib/inch/utils/shell_helper.rb
inch-0.8.0 lib/inch/utils/shell_helper.rb
inch-0.8.0.rc2 lib/inch/utils/shell_helper.rb
inch-0.8.0.rc1 lib/inch/utils/shell_helper.rb
inch-0.7.1 lib/inch/utils/shell_helper.rb
inch-0.7.0 lib/inch/utils/shell_helper.rb
inch-0.6.4 lib/inch/utils/shell_helper.rb
inch-0.6.3 lib/inch/utils/shell_helper.rb
inch-0.6.2 lib/inch/utils/shell_helper.rb
inch-0.6.1 lib/inch/utils/shell_helper.rb
inch-0.6.0 lib/inch/utils/shell_helper.rb
inch-0.6.0.rc6 lib/inch/utils/shell_helper.rb
inch-0.6.0.rc5 lib/inch/utils/shell_helper.rb
inch-0.6.0.rc4 lib/inch/utils/shell_helper.rb
inch-0.6.0.rc3 lib/inch/utils/shell_helper.rb
inch-0.6.0.rc2 lib/inch/utils/shell_helper.rb
inch-0.6.0.rc1 lib/inch/utils/shell_helper.rb
inch-0.5.10 lib/inch/utils/shell_helper.rb
inch-0.5.9 lib/inch/utils/shell_helper.rb
inch-0.5.8 lib/inch/utils/shell_helper.rb