abiquo-chef-agent 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -6
- data/Rakefile +2 -2
- data/lib/abiquo-chef-agent.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/config_spec.rb +4 -0
- metadata +1 -1
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
|
1
|
+
abiquo-chef-agent
|
2
|
+
=================
|
2
3
|
|
3
4
|
A simple boot time execution daemon that allow to execute the Chef configuration of an Abiquo virtual machine.
|
4
5
|
|
5
|
-
|
6
|
+
## Contributing to abiquo-chef-agent
|
6
7
|
|
7
8
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
9
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
@@ -12,8 +13,6 @@ A simple boot time execution daemon that allow to execute the Chef configuration
|
|
12
13
|
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
14
|
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
Copyright (c) 2011 Sergio Rubio. See LICENSE.txt for
|
18
|
-
further details.
|
16
|
+
## Copyright
|
19
17
|
|
18
|
+
See LICENSE.txt for further details.
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
3
|
require './lib/abiquo-chef-agent.rb'
|
4
|
-
|
5
4
|
require 'jeweler'
|
5
|
+
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
8
8
|
gem.version = Abiquo::Chef::VERSION
|
@@ -19,9 +19,9 @@ Jeweler::Tasks.new do |gem|
|
|
19
19
|
gem.add_runtime_dependency 'daemons'
|
20
20
|
gem.add_runtime_dependency 'rest-client'
|
21
21
|
gem.add_runtime_dependency 'xml-simple'
|
22
|
-
gem.files.exclude 'rubygem-abiquo-chef-agent.spec'
|
23
22
|
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
24
23
|
end
|
24
|
+
|
25
25
|
Jeweler::RubygemsDotOrgTasks.new
|
26
26
|
|
27
27
|
task :default => :build
|
data/lib/abiquo-chef-agent.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/unit/config_spec.rb
CHANGED
@@ -31,5 +31,9 @@ describe Abiquo::Chef::Config do
|
|
31
31
|
@config.client_cert_file.should be_a(String)
|
32
32
|
end
|
33
33
|
|
34
|
+
it "should have a valid bootstrap xml mediatype" do
|
35
|
+
@config.bootstrap_mediatype.should match(/^application\/vnd.abiquo.[a-z]+\+xml(;version=[0-9](\.[0-9]+)+)?$/)
|
36
|
+
end
|
37
|
+
|
34
38
|
end
|
35
39
|
end
|