transrate 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +17 -0
  3. data/README.md +1 -1
  4. data/Rakefile +1 -1
  5. data/bin/transrate +2 -375
  6. data/docs/transrate_logo_full.png +0 -0
  7. data/files.txt +78 -0
  8. data/lib/transrate.rb +1 -0
  9. data/lib/transrate/assembly.rb +4 -0
  10. data/lib/transrate/cmdline.rb +543 -0
  11. data/lib/transrate/comparative_metrics.rb +3 -0
  12. data/lib/transrate/snap.rb +10 -0
  13. data/lib/transrate/version.rb +1 -1
  14. data/packaging/build_deps_linux.sh +57 -0
  15. data/packaging/build_deps_macosx.sh +55 -0
  16. data/packaging/bundler-config +3 -0
  17. data/packaging/minify.sh +43 -0
  18. data/packaging/transrate +20 -0
  19. data/test/data/test_contig_nc1.fa +2 -0
  20. data/test/data/test_contig_nc2.fa +4 -0
  21. data/test/data/test_contig_nc3.fa +6 -0
  22. data/test/data/test_contig_nc4.fa +4 -0
  23. data/test/data/test_contig_nc5.fa +6 -0
  24. data/test/data/test_contig_nc6.fa +2 -0
  25. data/test/data/test_contig_nc7.fa +2 -0
  26. data/test/data/test_reference_aa1.fa +2 -0
  27. data/test/data/test_reference_nc1.fa +2 -0
  28. data/test/helper.rb +35 -6
  29. data/test/test_assembly.rb +5 -3
  30. data/test/test_cmd.rb +1 -1
  31. data/test/test_cmdline.rb +114 -0
  32. data/test/test_comp_metrics.rb +2 -2
  33. data/test/test_contig.rb +1 -1
  34. data/test/test_contig_metrics.rb +1 -1
  35. data/test/test_inline.rb +1 -1
  36. data/test/test_optimiser.rb +16 -16
  37. data/test/test_read_metrics.rb +1 -1
  38. data/test/test_salmon.rb +1 -1
  39. data/test/test_snap.rb +1 -1
  40. data/test/test_transrate.rb +1 -1
  41. data/test/test_transrater.rb +2 -2
  42. data/test/vagrant/centos_6.5_64/Vagrantfile +122 -0
  43. data/test/vagrant/debian_7.4_64/Vagrantfile +126 -0
  44. data/test/vagrant/debian_7.4_64/provision.sh +28 -0
  45. data/test/vagrant/fedora_20_64/Vagrantfile +122 -0
  46. data/test/vagrant/fedora_20_64/provision.sh +16 -0
  47. data/test/vagrant/linux-x86_64/Vagrantfile +10 -0
  48. data/test/vagrant/osx/Vagrantfile +18 -0
  49. data/test/vagrant/ubuntu_12.04_64/Vagrantfile +126 -0
  50. data/test/vagrant/ubuntu_12.04_64/provision.sh +24 -0
  51. data/transrate.gemspec +2 -2
  52. metadata +38 -17
  53. data/test/test_bin.rb +0 -139
@@ -38,7 +38,7 @@ class Tester
38
38
  end
39
39
  end
40
40
 
41
- class TestCompMetrics2 < Test::Unit::TestCase
41
+ class TestCompMetrics2 < MiniTest::Test
42
42
 
43
43
 
44
44
  context "ComparativeMetrics" do
@@ -122,7 +122,7 @@ class TestCompMetrics2 < Test::Unit::TestCase
122
122
  reference = Transrate::Assembly.new(target)
123
123
  comp = Transrate::ComparativeMetrics.new(assembly, reference, 1)
124
124
  comp.get_reference_hits crbblast
125
- assert_raise Transrate::TransrateError do
125
+ assert_raises Transrate::TransrateError do
126
126
  comp.per_query_contig_reference_coverage
127
127
  end
128
128
  end
data/test/test_contig.rb CHANGED
@@ -2,7 +2,7 @@ require 'helper'
2
2
  require 'bio'
3
3
  require 'benchmark'
4
4
 
5
- class TestContig < Test::Unit::TestCase
5
+ class TestContig < MiniTest::Test
6
6
 
7
7
  context "Contig" do
8
8
 
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- class TestContigMetrics < Test::Unit::TestCase
3
+ class TestContigMetrics < MiniTest::Test
4
4
 
5
5
  context "transrate" do
6
6
 
data/test/test_inline.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'helper'
4
4
  require 'bio'
5
5
 
6
- class TestInline < Test::Unit::TestCase
6
+ class TestInline < MiniTest::Test
7
7
 
8
8
  context 'transrate' do
9
9
 
@@ -1,26 +1,26 @@
1
1
  require 'helper'
2
2
  require 'tmpdir'
3
3
 
4
- class TestOptimiser < Test::Unit::TestCase
4
+ class TestOptimiser < MiniTest::Test
5
5
 
6
6
  context "Optimiser" do
7
7
 
8
- setup do
9
- @reference = File.join(File.dirname(__FILE__), 'data', 'sorghum_100.fa')
10
- left = File.join(File.dirname(__FILE__), "data", "sorghum_100.1.fastq")
11
- right = File.join(File.dirname(__FILE__), "data", "sorghum_100.2.fastq")
12
- @assembly = Transrate::Assembly.new @reference
13
- @readmetrics = Transrate::ReadMetrics.new @assembly
14
-
15
- @readmetrics.run(left, right)
16
- end
17
-
18
8
  should "get optimal score" do
19
- optimiser = Transrate::ScoreOptimiser.new(@assembly, @readmetrics)
20
- assert_in_delta 0.1507, optimiser.raw_score.round(4), 0.005
21
- optimal, cutoff = optimiser.optimal_score
22
- assert_in_delta 0.4529, optimal.round(4), 0.05
23
- assert_in_delta 0.5638, cutoff.round(4), 0.04
9
+ Dir.mktmpdir do |tmpdir|
10
+ Dir.chdir tmpdir do
11
+ @reference = File.join(File.dirname(__FILE__), 'data', 'sorghum_100.fa')
12
+ left = File.join(File.dirname(__FILE__), "data", "sorghum_100.1.fastq")
13
+ right = File.join(File.dirname(__FILE__), "data", "sorghum_100.2.fastq")
14
+ @assembly = Transrate::Assembly.new @reference
15
+ @readmetrics = Transrate::ReadMetrics.new @assembly
16
+ @readmetrics.run(left, right)
17
+ optimiser = Transrate::ScoreOptimiser.new(@assembly, @readmetrics)
18
+ assert_in_delta 0.1507, optimiser.raw_score.round(4), 0.005
19
+ optimal, cutoff = optimiser.optimal_score
20
+ assert_in_delta 0.4529, optimal.round(4), 0.05
21
+ assert_in_delta 0.5638, cutoff.round(4), 0.04
22
+ end
23
+ end
24
24
  end
25
25
 
26
26
  end
@@ -1,7 +1,7 @@
1
1
  require 'helper'
2
2
  require 'tmpdir'
3
3
 
4
- class TestReadMetrics < Test::Unit::TestCase
4
+ class TestReadMetrics < MiniTest::Test
5
5
 
6
6
  context "ReadMetrics" do
7
7
 
data/test/test_salmon.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'helper'
2
2
  require 'tmpdir'
3
3
 
4
- class TestSalmon < Test::Unit::TestCase
4
+ class TestSalmon < MiniTest::Test
5
5
 
6
6
  context "Salmon" do
7
7
 
data/test/test_snap.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'helper'
2
2
  require 'tmpdir'
3
3
 
4
- class TestSnap < Test::Unit::TestCase
4
+ class TestSnap < MiniTest::Test
5
5
 
6
6
  context "Snap" do
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'helper'
4
4
 
5
- class TestTransrate < Test::Unit::TestCase
5
+ class TestTransrate < MiniTest::Test
6
6
 
7
7
  context "transrate" do
8
8
 
@@ -3,7 +3,7 @@
3
3
  require 'helper'
4
4
  require 'tmpdir'
5
5
 
6
- class TestTransrater < Test::Unit::TestCase
6
+ class TestTransrater < MiniTest::Test
7
7
 
8
8
  context "transrater" do
9
9
 
@@ -20,7 +20,7 @@ class TestTransrater < Test::Unit::TestCase
20
20
  end
21
21
 
22
22
  should "raise error when assembly input is nil" do
23
- assert_raise Transrate::TransrateError do
23
+ assert_raises Transrate::TransrateError do
24
24
  rater = Transrate::Transrater.new(nil, @reference)
25
25
  end
26
26
  end
@@ -0,0 +1,122 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
+ VAGRANTFILE_API_VERSION = "2"
6
+
7
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
+ # All Vagrant configuration is done here. The most common configuration
9
+ # options are documented and commented below. For a complete reference,
10
+ # please see the online documentation at vagrantup.com.
11
+
12
+ # Every Vagrant virtual environment requires a box to build off of.
13
+ config.vm.box = "chef/centos-6.5"
14
+
15
+ # Disable automatic box update checking. If you disable this, then
16
+ # boxes will only be checked for updates when the user runs
17
+ # `vagrant box outdated`. This is not recommended.
18
+ # config.vm.box_check_update = false
19
+
20
+ # Create a forwarded port mapping which allows access to a specific port
21
+ # within the machine from a port on the host machine. In the example below,
22
+ # accessing "localhost:8080" will access port 80 on the guest machine.
23
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
24
+
25
+ # Create a private network, which allows host-only access to the machine
26
+ # using a specific IP.
27
+ # config.vm.network "private_network", ip: "192.168.33.10"
28
+
29
+ # Create a public network, which generally matched to bridged network.
30
+ # Bridged networks make the machine appear as another physical device on
31
+ # your network.
32
+ # config.vm.network "public_network"
33
+
34
+ # If true, then any SSH connections made will enable agent forwarding.
35
+ # Default value: false
36
+ # config.ssh.forward_agent = true
37
+
38
+ # Share an additional folder to the guest VM. The first argument is
39
+ # the path on the host to the actual folder. The second argument is
40
+ # the path on the guest to mount the folder. And the optional third
41
+ # argument is a set of non-required options.
42
+ # config.vm.synced_folder "../data", "/vagrant_data"
43
+
44
+ # Provider-specific configuration so you can fine-tune various
45
+ # backing providers for Vagrant. These expose provider-specific options.
46
+ # Example for VirtualBox:
47
+ #
48
+ # config.vm.provider "virtualbox" do |vb|
49
+ # # Don't boot with headless mode
50
+ # vb.gui = true
51
+ #
52
+ # # Use VBoxManage to customize the VM. For example to change memory:
53
+ # vb.customize ["modifyvm", :id, "--memory", "1024"]
54
+ # end
55
+ #
56
+ # View the documentation for the provider you're using for more
57
+ # information on available options.
58
+
59
+ # Enable provisioning with CFEngine. CFEngine Community packages are
60
+ # automatically installed. For example, configure the host as a
61
+ # policy server and optionally a policy file to run:
62
+ #
63
+ # config.vm.provision "cfengine" do |cf|
64
+ # cf.am_policy_hub = true
65
+ # # cf.run_file = "motd.cf"
66
+ # end
67
+ #
68
+ # You can also configure and bootstrap a client to an existing
69
+ # policy server:
70
+ #
71
+ # config.vm.provision "cfengine" do |cf|
72
+ # cf.policy_server_address = "10.0.2.15"
73
+ # end
74
+
75
+ # Enable provisioning with Puppet stand alone. Puppet manifests
76
+ # are contained in a directory path relative to this Vagrantfile.
77
+ # You will need to create the manifests directory and a manifest in
78
+ # the file default.pp in the manifests_path directory.
79
+ #
80
+ # config.vm.provision "puppet" do |puppet|
81
+ # puppet.manifests_path = "manifests"
82
+ # puppet.manifest_file = "site.pp"
83
+ # end
84
+
85
+ # Enable provisioning with chef solo, specifying a cookbooks path, roles
86
+ # path, and data_bags path (all relative to this Vagrantfile), and adding
87
+ # some recipes and/or roles.
88
+ #
89
+ # config.vm.provision "chef_solo" do |chef|
90
+ # chef.cookbooks_path = "../my-recipes/cookbooks"
91
+ # chef.roles_path = "../my-recipes/roles"
92
+ # chef.data_bags_path = "../my-recipes/data_bags"
93
+ # chef.add_recipe "mysql"
94
+ # chef.add_role "web"
95
+ #
96
+ # # You may also specify custom JSON attributes:
97
+ # chef.json = { mysql_password: "foo" }
98
+ # end
99
+
100
+ # Enable provisioning with chef server, specifying the chef server URL,
101
+ # and the path to the validation key (relative to this Vagrantfile).
102
+ #
103
+ # The Opscode Platform uses HTTPS. Substitute your organization for
104
+ # ORGNAME in the URL and validation key.
105
+ #
106
+ # If you have your own Chef Server, use the appropriate URL, which may be
107
+ # HTTP instead of HTTPS depending on your configuration. Also change the
108
+ # validation key to validation.pem.
109
+ #
110
+ # config.vm.provision "chef_client" do |chef|
111
+ # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
112
+ # chef.validation_key_path = "ORGNAME-validator.pem"
113
+ # end
114
+ #
115
+ # If you're using the Opscode platform, your validator client is
116
+ # ORGNAME-validator, replacing ORGNAME with your organization name.
117
+ #
118
+ # If you have your own Chef Server, the default validation client name is
119
+ # chef-validator, unless you changed the configuration.
120
+ #
121
+ # chef.validation_client_name = "ORGNAME-validator"
122
+ end
@@ -0,0 +1,126 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
+ VAGRANTFILE_API_VERSION = "2"
6
+
7
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
+ # All Vagrant configuration is done here. The most common configuration
9
+ # options are documented and commented below. For a complete reference,
10
+ # please see the online documentation at vagrantup.com.
11
+
12
+ # Every Vagrant virtual environment requires a box to build off of.
13
+ config.vm.box = "chef/debian-7.4"
14
+
15
+ # Provision the virtual machine with a local script, provision.sh,
16
+ # in the same directory as the Vagrantfile
17
+ config.vm.provision "shell", path: "provision.sh"
18
+
19
+ # Disable automatic box update checking. If you disable this, then
20
+ # boxes will only be checked for updates when the user runs
21
+ # `vagrant box outdated`. This is not recommended.
22
+ # config.vm.box_check_update = false
23
+
24
+ # Create a forwarded port mapping which allows access to a specific port
25
+ # within the machine from a port on the host machine. In the example below,
26
+ # accessing "localhost:8080" will access port 80 on the guest machine.
27
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
28
+
29
+ # Create a private network, which allows host-only access to the machine
30
+ # using a specific IP.
31
+ # config.vm.network "private_network", ip: "192.168.33.10"
32
+
33
+ # Create a public network, which generally matched to bridged network.
34
+ # Bridged networks make the machine appear as another physical device on
35
+ # your network.
36
+ # config.vm.network "public_network"
37
+
38
+ # If true, then any SSH connections made will enable agent forwarding.
39
+ # Default value: false
40
+ # config.ssh.forward_agent = true
41
+
42
+ # Share an additional folder to the guest VM. The first argument is
43
+ # the path on the host to the actual folder. The second argument is
44
+ # the path on the guest to mount the folder. And the optional third
45
+ # argument is a set of non-required options.
46
+ # config.vm.synced_folder "../data", "/vagrant_data"
47
+
48
+ # Provider-specific configuration so you can fine-tune various
49
+ # backing providers for Vagrant. These expose provider-specific options.
50
+ # Example for VirtualBox:
51
+ #
52
+ # config.vm.provider "virtualbox" do |vb|
53
+ # # Don't boot with headless mode
54
+ # vb.gui = true
55
+ #
56
+ # # Use VBoxManage to customize the VM. For example to change memory:
57
+ # vb.customize ["modifyvm", :id, "--memory", "1024"]
58
+ # end
59
+ #
60
+ # View the documentation for the provider you're using for more
61
+ # information on available options.
62
+
63
+ # Enable provisioning with CFEngine. CFEngine Community packages are
64
+ # automatically installed. For example, configure the host as a
65
+ # policy server and optionally a policy file to run:
66
+ #
67
+ # config.vm.provision "cfengine" do |cf|
68
+ # cf.am_policy_hub = true
69
+ # # cf.run_file = "motd.cf"
70
+ # end
71
+ #
72
+ # You can also configure and bootstrap a client to an existing
73
+ # policy server:
74
+ #
75
+ # config.vm.provision "cfengine" do |cf|
76
+ # cf.policy_server_address = "10.0.2.15"
77
+ # end
78
+
79
+ # Enable provisioning with Puppet stand alone. Puppet manifests
80
+ # are contained in a directory path relative to this Vagrantfile.
81
+ # You will need to create the manifests directory and a manifest in
82
+ # the file default.pp in the manifests_path directory.
83
+ #
84
+ # config.vm.provision "puppet" do |puppet|
85
+ # puppet.manifests_path = "manifests"
86
+ # puppet.manifest_file = "site.pp"
87
+ # end
88
+
89
+ # Enable provisioning with chef solo, specifying a cookbooks path, roles
90
+ # path, and data_bags path (all relative to this Vagrantfile), and adding
91
+ # some recipes and/or roles.
92
+ #
93
+ # config.vm.provision "chef_solo" do |chef|
94
+ # chef.cookbooks_path = "../my-recipes/cookbooks"
95
+ # chef.roles_path = "../my-recipes/roles"
96
+ # chef.data_bags_path = "../my-recipes/data_bags"
97
+ # chef.add_recipe "mysql"
98
+ # chef.add_role "web"
99
+ #
100
+ # # You may also specify custom JSON attributes:
101
+ # chef.json = { mysql_password: "foo" }
102
+ # end
103
+
104
+ # Enable provisioning with chef server, specifying the chef server URL,
105
+ # and the path to the validation key (relative to this Vagrantfile).
106
+ #
107
+ # The Opscode Platform uses HTTPS. Substitute your organization for
108
+ # ORGNAME in the URL and validation key.
109
+ #
110
+ # If you have your own Chef Server, use the appropriate URL, which may be
111
+ # HTTP instead of HTTPS depending on your configuration. Also change the
112
+ # validation key to validation.pem.
113
+ #
114
+ # config.vm.provision "chef_client" do |chef|
115
+ # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
116
+ # chef.validation_key_path = "ORGNAME-validator.pem"
117
+ # end
118
+ #
119
+ # If you're using the Opscode platform, your validator client is
120
+ # ORGNAME-validator, replacing ORGNAME with your organization name.
121
+ #
122
+ # If you have your own Chef Server, the default validation client name is
123
+ # chef-validator, unless you changed the configuration.
124
+ #
125
+ # chef.validation_client_name = "ORGNAME-validator"
126
+ end
@@ -0,0 +1,28 @@
1
+ su vagrant
2
+
3
+ # Setup
4
+ sudo apt-get update -y
5
+ sudo apt-get install -y curl build-essential git zlib1g zlib1g-dev cmake
6
+
7
+ # Install a multi-user RVM install with the latest ruby
8
+ sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
9
+ \curl -sSL https://get.rvm.io | bash -s stable --ruby
10
+ source /usr/local/rvm/scripts/rvm
11
+
12
+ # Add user to RVM group
13
+ sudo usermod -a -G rvm vagrant
14
+
15
+ # Install transrate
16
+ git clone https://github.com/Blahah/transrate.git
17
+ cd transrate
18
+ sudo chmod -R 777 .
19
+
20
+ # Install transrate-tools
21
+ cd ..
22
+ git clone https://github.com/Blahah/transrate-tools.git
23
+
24
+ # Install dependencies
25
+ gem install bundler rake
26
+ bundle install
27
+ bundle exec rake compile
28
+ bundle exec bin/transrate --install-deps
@@ -0,0 +1,122 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
+ VAGRANTFILE_API_VERSION = "2"
6
+
7
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
+ # All Vagrant configuration is done here. The most common configuration
9
+ # options are documented and commented below. For a complete reference,
10
+ # please see the online documentation at vagrantup.com.
11
+
12
+ # Every Vagrant virtual environment requires a box to build off of.
13
+ config.vm.box = "box-cutter/fedora20"
14
+
15
+ # Disable automatic box update checking. If you disable this, then
16
+ # boxes will only be checked for updates when the user runs
17
+ # `vagrant box outdated`. This is not recommended.
18
+ # config.vm.box_check_update = false
19
+
20
+ # Create a forwarded port mapping which allows access to a specific port
21
+ # within the machine from a port on the host machine. In the example below,
22
+ # accessing "localhost:8080" will access port 80 on the guest machine.
23
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
24
+
25
+ # Create a private network, which allows host-only access to the machine
26
+ # using a specific IP.
27
+ # config.vm.network "private_network", ip: "192.168.33.10"
28
+
29
+ # Create a public network, which generally matched to bridged network.
30
+ # Bridged networks make the machine appear as another physical device on
31
+ # your network.
32
+ # config.vm.network "public_network"
33
+
34
+ # If true, then any SSH connections made will enable agent forwarding.
35
+ # Default value: false
36
+ # config.ssh.forward_agent = true
37
+
38
+ # Share an additional folder to the guest VM. The first argument is
39
+ # the path on the host to the actual folder. The second argument is
40
+ # the path on the guest to mount the folder. And the optional third
41
+ # argument is a set of non-required options.
42
+ # config.vm.synced_folder "../data", "/vagrant_data"
43
+
44
+ # Provider-specific configuration so you can fine-tune various
45
+ # backing providers for Vagrant. These expose provider-specific options.
46
+ # Example for VirtualBox:
47
+ #
48
+ # config.vm.provider "virtualbox" do |vb|
49
+ # # Don't boot with headless mode
50
+ # vb.gui = true
51
+ #
52
+ # # Use VBoxManage to customize the VM. For example to change memory:
53
+ # vb.customize ["modifyvm", :id, "--memory", "1024"]
54
+ # end
55
+ #
56
+ # View the documentation for the provider you're using for more
57
+ # information on available options.
58
+
59
+ # Enable provisioning with CFEngine. CFEngine Community packages are
60
+ # automatically installed. For example, configure the host as a
61
+ # policy server and optionally a policy file to run:
62
+ #
63
+ # config.vm.provision "cfengine" do |cf|
64
+ # cf.am_policy_hub = true
65
+ # # cf.run_file = "motd.cf"
66
+ # end
67
+ #
68
+ # You can also configure and bootstrap a client to an existing
69
+ # policy server:
70
+ #
71
+ # config.vm.provision "cfengine" do |cf|
72
+ # cf.policy_server_address = "10.0.2.15"
73
+ # end
74
+
75
+ # Enable provisioning with Puppet stand alone. Puppet manifests
76
+ # are contained in a directory path relative to this Vagrantfile.
77
+ # You will need to create the manifests directory and a manifest in
78
+ # the file default.pp in the manifests_path directory.
79
+ #
80
+ # config.vm.provision "puppet" do |puppet|
81
+ # puppet.manifests_path = "manifests"
82
+ # puppet.manifest_file = "site.pp"
83
+ # end
84
+
85
+ # Enable provisioning with chef solo, specifying a cookbooks path, roles
86
+ # path, and data_bags path (all relative to this Vagrantfile), and adding
87
+ # some recipes and/or roles.
88
+ #
89
+ # config.vm.provision "chef_solo" do |chef|
90
+ # chef.cookbooks_path = "../my-recipes/cookbooks"
91
+ # chef.roles_path = "../my-recipes/roles"
92
+ # chef.data_bags_path = "../my-recipes/data_bags"
93
+ # chef.add_recipe "mysql"
94
+ # chef.add_role "web"
95
+ #
96
+ # # You may also specify custom JSON attributes:
97
+ # chef.json = { mysql_password: "foo" }
98
+ # end
99
+
100
+ # Enable provisioning with chef server, specifying the chef server URL,
101
+ # and the path to the validation key (relative to this Vagrantfile).
102
+ #
103
+ # The Opscode Platform uses HTTPS. Substitute your organization for
104
+ # ORGNAME in the URL and validation key.
105
+ #
106
+ # If you have your own Chef Server, use the appropriate URL, which may be
107
+ # HTTP instead of HTTPS depending on your configuration. Also change the
108
+ # validation key to validation.pem.
109
+ #
110
+ # config.vm.provision "chef_client" do |chef|
111
+ # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
112
+ # chef.validation_key_path = "ORGNAME-validator.pem"
113
+ # end
114
+ #
115
+ # If you're using the Opscode platform, your validator client is
116
+ # ORGNAME-validator, replacing ORGNAME with your organization name.
117
+ #
118
+ # If you have your own Chef Server, the default validation client name is
119
+ # chef-validator, unless you changed the configuration.
120
+ #
121
+ # chef.validation_client_name = "ORGNAME-validator"
122
+ end