Sha256: 2cb115f7f96f87fc354f8d7d1e715e918bf24edbac8b03d9dbe8faf3c14e01ee

Contents?: true

Size: 483 Bytes

Versions: 17

Compression:

Stored size: 483 Bytes

Contents

module Minke
  module Docker
    class SystemRunner

      def execute command
        system("#{command}")
      end

      def execute_and_return command
        log = `#{command}`
        return log.strip
      end

      def mktmpdir
        Dir.mktmpdir
      end

      def remove_entry_secure dir
        FileUtils.remove_entry_secure dir
      end

      def write_file filename, data
        File.open(filename, 'w') { |file| file.write(data) }
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
minke-1.10.0 lib/minke/docker/system_runner.rb
minke-1.9.9 lib/minke/docker/system_runner.rb
minke-1.9.8 lib/minke/docker/system_runner.rb
minke-1.9.7 lib/minke/docker/system_runner.rb
minke-1.9.6 lib/minke/docker/system_runner.rb
minke-1.9.5 lib/minke/docker/system_runner.rb
minke-1.9.4 lib/minke/docker/system_runner.rb
minke-1.9.3 lib/minke/docker/system_runner.rb
minke-1.9.2 lib/minke/docker/system_runner.rb
minke-1.9.1 lib/minke/docker/system_runner.rb
minke-1.9.0 lib/minke/docker/system_runner.rb
minke-1.8.3 lib/minke/docker/system_runner.rb
minke-1.8.2 lib/minke/docker/system_runner.rb
minke-1.8.1 lib/minke/docker/system_runner.rb
minke-1.8.0 lib/minke/docker/system_runner.rb
minke-1.6.1 lib/minke/docker/system_runner.rb
minke-1.6.0 lib/minke/docker/system_runner.rb