Sha256: 9ff7760ec9859609cc5603c00d2071bcfb1a6200c522972b9c371e345e81afde

Contents?: true

Size: 362 Bytes

Versions: 51

Compression:

Stored size: 362 Bytes

Contents

module Kurchatov
  module Mixin
    module Command

      def shell_out(cmd)
        mix = ::Mixlib::ShellOut.new(cmd)
        mix.run_command
        mix
      end

      def shell_out!(cmd)
        mix = shell_out(cmd)
        mix.error!
        mix
      end

      def shell(cmd)
        mix = shell_out!(cmd)
        mix.stdout
      end

    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
kurchatov-0.4.7 lib/kurchatov/mixin/command.rb
kurchatov-0.4.6 lib/kurchatov/mixin/command.rb
kurchatov-0.4.5 lib/kurchatov/mixin/command.rb
kurchatov-0.4.4 lib/kurchatov/mixin/command.rb
kurchatov-0.4.3 lib/kurchatov/mixin/command.rb
kurchatov-0.4.2 lib/kurchatov/mixin/command.rb
kurchatov-0.4.1 lib/kurchatov/mixin/command.rb
kurchatov-0.3.8 lib/kurchatov/mixin/command.rb
kurchatov-0.3.7 lib/kurchatov/mixin/command.rb
kurchatov-0.3.6 lib/kurchatov/mixin/command.rb
kurchatov-0.3.5 lib/kurchatov/mixin/command.rb
kurchatov-0.3.4 lib/kurchatov/mixin/command.rb
kurchatov-0.3.3 lib/kurchatov/mixin/command.rb
kurchatov-0.3.2 lib/kurchatov/mixin/command.rb
kurchatov-0.3.1 lib/kurchatov/mixin/command.rb
kurchatov-0.3.0 lib/kurchatov/mixin/command.rb
kurchatov-0.2.9 lib/kurchatov/mixin/command.rb
kurchatov-0.2.8 lib/kurchatov/mixin/command.rb
kurchatov-0.2.7 lib/kurchatov/mixin/command.rb
kurchatov-0.2.6 lib/kurchatov/mixin/command.rb