Sha256: 653c7974045b9a031c7ad1169dc26ae94882d7c566368dba72e2d59a4412d984

Contents?: true

Size: 231 Bytes

Versions: 14

Compression:

Stored size: 231 Bytes

Contents

module Vim
  module Flavor
    module ShellUtility
      def sh script
        output = send(:`, script)
        if $? == 0
          output
        else
          raise RuntimeError, output
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vim-flavor-2.2.1 lib/vim-flavor/shellutility.rb
vim-flavor-2.2.0 lib/vim-flavor/shellutility.rb
vim-flavor-2.1.1 lib/vim-flavor/shellutility.rb
vim-flavor-2.1.0 lib/vim-flavor/shellutility.rb
vim-flavor-2.0.0 lib/vim-flavor/shellutility.rb
vim-flavor-1.1.5 lib/vim-flavor/shellutility.rb
vim-flavor-1.1.4 lib/vim-flavor/shellutility.rb
vim-flavor-1.1.3 lib/vim-flavor/shellutility.rb
vim-flavor-1.1.2 lib/vim-flavor/shellutility.rb
vim-flavor-1.1.1 lib/vim-flavor/shellutility.rb
vim-flavor-1.1.0 lib/vim-flavor/shellutility.rb
vim-flavor-1.0.3 lib/vim-flavor/shellutility.rb
vim-flavor-1.0.2 lib/vim-flavor/shellutility.rb
vim-flavor-1.0.1 lib/vim-flavor/shellutility.rb