Sha256: 1c11190c0b5672aef48c0381fceb8807555d56a3d1bf0083a60d7a90ae6f5ba2

Contents?: true

Size: 473 Bytes

Versions: 66

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

66 entries across 66 versions & 1 rubygems

Version Path
specinfra-1.27.5 lib/specinfra/command/freebsd10.rb
specinfra-1.27.4 lib/specinfra/command/freebsd10.rb
specinfra-1.27.3 lib/specinfra/command/freebsd10.rb
specinfra-1.27.2 lib/specinfra/command/freebsd10.rb
specinfra-1.27.1 lib/specinfra/command/freebsd10.rb
specinfra-1.27.0 lib/specinfra/command/freebsd10.rb
specinfra-1.26.0 lib/specinfra/command/freebsd10.rb
specinfra-1.25.8 lib/specinfra/command/freebsd10.rb
specinfra-1.25.7 lib/specinfra/command/freebsd10.rb
specinfra-1.25.6 lib/specinfra/command/freebsd10.rb
specinfra-1.25.5 lib/specinfra/command/freebsd10.rb
specinfra-1.25.4 lib/specinfra/command/freebsd10.rb
specinfra-1.25.3 lib/specinfra/command/freebsd10.rb
specinfra-1.25.2 lib/specinfra/command/freebsd10.rb
specinfra-1.25.1 lib/specinfra/command/freebsd10.rb
specinfra-1.25.0 lib/specinfra/command/freebsd10.rb
specinfra-1.24.0 lib/specinfra/command/freebsd10.rb
specinfra-1.23.1 lib/specinfra/command/freebsd10.rb
specinfra-1.23.0 lib/specinfra/command/freebsd10.rb
specinfra-1.22.1 lib/specinfra/command/freebsd10.rb