Sha256: 9d86fb5d906c92fe7a2da988b32dfc7e71185d33e130b3a6bd88546c34df1661

Contents?: true

Size: 496 Bytes

Versions: 31

Compression:

Stored size: 496 Bytes

Contents

module Veewee
  module Provider
    module Kvm
      module BoxCommand

        def halt(options={})
          matched_servers=@connection.servers.all(:name => name)
          matched_servers.first.halt unless matched_servers.nil?
        end

        def stop(options={})
          matched_servers=@connection.servers.all(:name => name)
          matched_servers.first.stop unless matched_servers.nil?
        end

      end # End Module
    end # End Module
  end # End Module
end # End Module

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
veewee-0.5.0.alpha4 lib/veewee/provider/kvm/box/halt.rb
veewee-0.5.0.alpha3 lib/veewee/provider/kvm/box/halt.rb
veewee-0.5.0.alpha2 lib/veewee/provider/kvm/box/halt.rb
veewee-0.5.0.alpha1 lib/veewee/provider/kvm/box/halt.rb
veewee-0.4.5.1 lib/veewee/provider/kvm/box/halt.rb
veewee-0.4.5 lib/veewee/provider/kvm/box/halt.rb
veewee-0.4.5.pre1 lib/veewee/provider/kvm/box/halt.rb
veewee-0.4.4 lib/veewee/provider/kvm/box/halt.rb
veewee-0.4.3 lib/veewee/provider/kvm/box/halt.rb
veewee-0.4.2 lib/veewee/provider/kvm/box/halt.rb
veewee-0.4.1 lib/veewee/provider/kvm/box/halt.rb
veewee-0.4.0 lib/veewee/provider/kvm/box/halt.rb
veewee-0.3.12 lib/veewee/provider/kvm/box/halt.rb
veewee-0.3.11 lib/veewee/provider/kvm/box/halt.rb
veewee-0.3.10 lib/veewee/provider/kvm/box/halt.rb
veewee-0.3.9 lib/veewee/provider/kvm/box/halt.rb
veewee-atlassian-0.3.11 lib/veewee/provider/kvm/box/halt.rb
veewee-0.3.7 lib/veewee/provider/kvm/box/halt.rb
veewee-0.3.6 lib/veewee/provider/kvm/box/halt.rb
veewee-0.3.5 lib/veewee/provider/kvm/box/halt.rb