Sha256: 0ab5a6f86706f2ba2110a5275388ef491c8850b21148b75e5ecd2e62e78b4b2d

Contents?: true

Size: 262 Bytes

Versions: 19

Compression:

Stored size: 262 Bytes

Contents

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

      def running?(under)
        backend.check_container_running(@name)
      end

      def to_s
        'LXC'
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
serverspec-0.13.7 lib/serverspec/type/lxc.rb
serverspec-0.13.6 lib/serverspec/type/lxc.rb
serverspec-0.13.5 lib/serverspec/type/lxc.rb
serverspec-0.13.4 lib/serverspec/type/lxc.rb
serverspec-0.13.3 lib/serverspec/type/lxc.rb
serverspec-0.13.2 lib/serverspec/type/lxc.rb
serverspec-0.13.1 lib/serverspec/type/lxc.rb
serverspec-0.13.0 lib/serverspec/type/lxc.rb
serverspec-0.12.0 lib/serverspec/type/lxc.rb
serverspec-0.11.5 lib/serverspec/type/lxc.rb
serverspec-0.11.4 lib/serverspec/type/lxc.rb
serverspec-0.11.3 lib/serverspec/type/lxc.rb
serverspec-0.11.2 lib/serverspec/type/lxc.rb
serverspec-0.11.1 lib/serverspec/type/lxc.rb
serverspec-0.11.0 lib/serverspec/type/lxc.rb
serverspec-0.10.13 lib/serverspec/type/lxc.rb
serverspec-0.10.12 lib/serverspec/type/lxc.rb
serverspec-0.10.11 lib/serverspec/type/lxc.rb
serverspec-0.10.10 lib/serverspec/type/lxc.rb