Sha256: 032afe3ef8b0fdd8361e3c9c4f5ab5a125e9f9efd52e3710290b9d0f05101e27

Contents?: true

Size: 473 Bytes

Versions: 5

Compression:

Stored size: 473 Bytes

Contents

module Specinfra
  module Command
    class FreeBSD10 < FreeBSD
      def check_installed(package, version=nil)
        if version
          "pkg query %v #{escape(package)} | grep -- #{escape(version)}"
        else
          "pkg info #{escape(package)}"
        end
      end

      def install(package)
        "pkg install -y #{package}"
      end

      def get_package_version(package, opts=nil)
        "pkg query %v #{escape(package)}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta6 lib/specinfra/command/freebsd10.rb
specinfra-2.0.0.beta5 lib/specinfra/command/freebsd10.rb
specinfra-2.0.0.beta4 lib/specinfra/command/freebsd10.rb
specinfra-2.0.0.beta3 lib/specinfra/command/freebsd10.rb
specinfra-2.0.0.beta2 lib/specinfra/command/freebsd10.rb