lib/commands/testlab.rb in testlab-0.9.1 vs lib/commands/testlab.rb in testlab-1.0.0
- old
+ new
@@ -80,39 +80,39 @@
down.action do |global_options,options,args|
@testlab.down
end
end
-# LAB SETUP
-############
+# LAB PROVISION
+################
desc 'Provision the lab components'
long_desc <<-EOF
-Attempts to setup the defined lab components.
+Attempts to provision the defined lab components.
-The components are set up in the following order:
+The components are provisioned in the following order:
Nodes -> Networks -> Containers
EOF
-command :setup do |setup|
- setup.action do |global_options,options,args|
- @testlab.setup
+command :provision do |provision|
+ provision.action do |global_options,options,args|
+ @testlab.provision
end
end
-# LAB TEARDOWN
-###############
+# LAB DEPROVISION
+##################
desc 'De-provision the lab components'
long_desc <<-EOF
-Attempts to teardown the defined lab components.
+Attempts to deprovision the defined lab components.
The components are torndown in the following order:
Containers -> Networks -> Nodes
EOF
-command :teardown do |teardown|
- teardown.action do |global_options,options,args|
- @testlab.teardown
+command :deprovision do |deprovision|
+ deprovision.action do |global_options,options,args|
+ @testlab.deprovision
end
end
# LAB BUILD
############
@@ -124,11 +124,11 @@
Nodes -> Networks -> Containers
TestLab will then attempt to build the components, executing the following tasks for each:
-Create -> Up -> Setup
+Create -> Up -> Provision
EOF
command :build do |build|
build.action do |global_options,options,args|
@testlab.build
end
@@ -144,10 +144,10 @@
Containers -> Networks -> Nodes
TestLab will then attempt to demolish the components, executing the following tasks for each:
-Teardown -> Down -> Destroy
+Deprovision -> Down -> Destroy
EOF
command :demolish do |demolish|
demolish.action do |global_options,options,args|
@testlab.demolish
end