Sha256: 54403b51d880a0ba3a0fe1f3105f9da869661de9e3fdacbbb32e86250b85767f

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)) + "/../machine/machine.rb"

class Sfp::Module::VM < Sfp::Module::Machine
	InCloud = "#{Sfp::Agent::Home}/vm.in_cloud"

	def update_state
		self.class.superclass.instance_method(:update_state).bind(self).call
		@state['in_cloud'] = (File.exist?(InCloud) ? File.read(InCloud).strip : '')
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nuri-0.5.5 modules/vm/vm.rb
nuri-0.5.4 modules/vm/vm.rb