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.5.7 lib/inch/utils/shell_helper.rb
inch-0.5.6 lib/inch/utils/shell_helper.rb
inch-0.5.5 lib/inch/utils/shell_helper.rb
inch-0.5.4 lib/inch/utils/shell_helper.rb
inch-0.5.3 lib/inch/utils/shell_helper.rb
inch-0.5.2 lib/inch/utils/shell_helper.rb
inch-0.5.1 lib/inch/utils/shell_helper.rb
inch-0.5.0 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc11 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc10 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc9 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc8 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc7 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc6 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc5 lib/inch/utils/shell_helper.rb
inch-0.5.0.rc4 lib/inch/utils/shell_helper.rb
inch-0.4.10 lib/inch/utils/shell_helper.rb
inch-0.4.9 lib/inch/utils/shell_helper.rb
inch-0.4.8 lib/inch/utils/shell_helper.rb
inch-0.4.7 lib/inch/utils/shell_helper.rb