Sha256: 399a41773df708076bbf16032a39c128d9ab35c70c216a75735b2b88d6b56cdd

Contents?: true

Size: 255 Bytes

Versions: 35

Compression:

Stored size: 255 Bytes

Contents

module Serverspec
  module Type
    class Lxc < Base
      def exists?
        backend.check_container(@name)
      end

      def running?
        backend.check_container_running(@name)
      end

      def to_s
        'LXC'
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
serverspec-1.16.0 lib/serverspec/type/lxc.rb
serverspec-1.15.0 lib/serverspec/type/lxc.rb
serverspec-1.14.0 lib/serverspec/type/lxc.rb
serverspec-1.13.0 lib/serverspec/type/lxc.rb
serverspec-1.12.0 lib/serverspec/type/lxc.rb
serverspec-1.11.0 lib/serverspec/type/lxc.rb
serverspec-1.10.0 lib/serverspec/type/lxc.rb
serverspec-1.9.1 lib/serverspec/type/lxc.rb
serverspec-1.9.0 lib/serverspec/type/lxc.rb
serverspec-1.8.0 lib/serverspec/type/lxc.rb
serverspec-1.7.1 lib/serverspec/type/lxc.rb
serverspec-1.7.0 lib/serverspec/type/lxc.rb
serverspec-1.6.0 lib/serverspec/type/lxc.rb
serverspec-1.5.0 lib/serverspec/type/lxc.rb
serverspec-2.0.0.beta2 lib/serverspec/type/lxc.rb
serverspec-1.4.2 lib/serverspec/type/lxc.rb
serverspec-2.0.0.beta1 lib/serverspec/type/lxc.rb
serverspec-1.4.1 lib/serverspec/type/lxc.rb
serverspec-1.4.0 lib/serverspec/type/lxc.rb
serverspec-1.3.0 lib/serverspec/type/lxc.rb