Class: ChefWorkflow::VM
- Inherits:
-
Object
- Object
- ChefWorkflow::VM
- Includes:
- DebugSupport
- Defined in:
- lib/chef-workflow/support/vm.rb,
lib/chef-workflow/support/vm/ec2.rb,
lib/chef-workflow/support/vm/knife.rb,
lib/chef-workflow/support/vm/vagrant.rb,
lib/chef-workflow/support/vm/chef_server.rb
Overview
This class mainly exists to track the run state of the Scheduler, and is kept simple so that the contents can be marshalled and restored from a file.
Defined Under Namespace
Classes: ChefServerProvisioner, EC2Provisioner, KnifeProvisioner, VagrantProvisioner
Constant Summary
Constants included from DebugSupport
DebugSupport::CHEF_WORKFLOW_DEBUG_DEFAULT
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
the dependencies that each vm group depends on.
-
#groups ⇒ Object
readonly
the vm groups and their provisioning lists.
-
#provisioned ⇒ Object
readonly
the set of provisioned (solved) groups.
-
#working ⇒ Object
readonly
the set of provisioning (working) groups.
Instance Method Summary collapse
-
#initialize ⇒ VM
constructor
A new instance of VM.
Methods included from DebugSupport
Constructor Details
#initialize ⇒ VM
Returns a new instance of VM.
30 31 32 33 34 35 |
# File 'lib/chef-workflow/support/vm.rb', line 30 def initialize @groups = ChefWorkflow::DatabaseSupport::VMGroup.new('vm_groups', false) @dependencies = ChefWorkflow::DatabaseSupport::VMGroup.new('vm_dependencies', true) @provisioned = ChefWorkflow::DatabaseSupport::Set.new('vm_scheduler', 'provisioned') @working = ChefWorkflow::DatabaseSupport::Set.new('vm_scheduler', 'working') end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
the dependencies that each vm group depends on
24 25 26 |
# File 'lib/chef-workflow/support/vm.rb', line 24 def dependencies @dependencies end |
#groups ⇒ Object (readonly)
the vm groups and their provisioning lists.
22 23 24 |
# File 'lib/chef-workflow/support/vm.rb', line 22 def groups @groups end |
#provisioned ⇒ Object (readonly)
the set of provisioned (solved) groups
26 27 28 |
# File 'lib/chef-workflow/support/vm.rb', line 26 def provisioned @provisioned end |
#working ⇒ Object (readonly)
the set of provisioning (working) groups
28 29 30 |
# File 'lib/chef-workflow/support/vm.rb', line 28 def working @working end |