Sha256: 420613f51eaa1796d8f66089d3657d6271e19a62f253c1734f90eeadaf111a56

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

require 'awesome_spawn'

module LinuxAdmin
  module Common
    def cmd(cmd)
      Distros.local.command(cmd)
    end

    def run(cmd, options = {})
      AwesomeSpawn.logger ||= logger
      AwesomeSpawn.run(cmd, options)
    end

    def run!(cmd, options = {})
      AwesomeSpawn.logger ||= logger
      AwesomeSpawn.run!(cmd, options)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
linux_admin-0.10.1 lib/linux_admin/common.rb