testlab 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +17 -1
- data/bin/tl +124 -8
- data/lib/testlab/container/lxc.rb +25 -0
- data/lib/testlab/container.rb +5 -5
- data/lib/testlab/interface.rb +2 -2
- data/lib/testlab/labfile.rb +2 -2
- data/lib/testlab/node/ssh.rb +2 -2
- data/lib/testlab/node/templates/node-setup.erb +1 -1
- data/lib/testlab/node.rb +2 -2
- data/lib/testlab/provisioner.rb +3 -2
- data/lib/testlab/provisioners/omnibus.rb +48 -0
- data/lib/testlab/provisioners/omnitruck.rb +115 -0
- data/lib/testlab/provisioners/shell.rb +18 -11
- data/lib/testlab/provisioners/templates/chef/omnibus.erb +6 -0
- data/lib/testlab/provisioners/templates/chef/omnitruck.erb +102 -0
- data/lib/testlab/version.rb +1 -1
- data/lib/testlab.rb +2 -4
- data/spec/container_spec.rb +55 -20
- data/spec/network_spec.rb +5 -1
- data/spec/node_spec.rb +51 -1
- data/spec/provisioners/shell_spec.rb +66 -0
- data/spec/support/Labfile +32 -4
- data/spec/testlab_spec.rb +4 -1
- data/spec/utility_spec.rb +114 -0
- metadata +12 -6
- data/lib/testlab/provisioners/chef.rb +0 -27
- data/lib/testlab/provisioners/templates/chef/bootstrap.erb +0 -0
@@ -1,27 +0,0 @@
|
|
1
|
-
class TestLab
|
2
|
-
|
3
|
-
class Provisioner
|
4
|
-
|
5
|
-
# Chef Provisioner Error Class
|
6
|
-
class ChefError < ProvisionerError; end
|
7
|
-
|
8
|
-
# Chef Provisioner Class
|
9
|
-
#
|
10
|
-
# @author Zachary Patten <zachary AT jovelabs DOT com>
|
11
|
-
class Chef
|
12
|
-
|
13
|
-
def initialize(config={}, ui=nil)
|
14
|
-
@config = (config || Hash.new)
|
15
|
-
@ui = (ui || TestLab.ui)
|
16
|
-
end
|
17
|
-
|
18
|
-
def setup(container)
|
19
|
-
end
|
20
|
-
|
21
|
-
def teardown(container)
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
end
|
File without changes
|