class Specinfra::Helper::DetectOs
Public Class Methods
detect()
click to toggle source
# File lib/specinfra/helper/detect_os.rb, line 4 def self.detect self.new(Specinfra.backend).detect end
new(backend)
click to toggle source
# File lib/specinfra/helper/detect_os.rb, line 8 def initialize(backend) @backend = backend end
Public Instance Methods
detect()
click to toggle source
# File lib/specinfra/helper/detect_os.rb, line 16 def detect raise NotImplementedError end
run_command(cmd)
click to toggle source
# File lib/specinfra/helper/detect_os.rb, line 12 def run_command(cmd) @backend.run_command(cmd) end