Permalink
Browse files

Initial publish to github

  • Loading branch information...
1 parent ecb2865 commit c57d65f9e06ae979fa0fddb9f2cb38406c11e489 @proffalken committed Aug 9, 2011
Showing with 15 additions and 0 deletions.
  1. +8 −0 README
  2. +7 −0 test/cobbler_connection_test.rb
View
8 README
@@ -0,0 +1,8 @@
+CapistranoCobbler
+=================
+
+This recipe for cobbler enables you to use the management classes in cobbler to automatically determine the nodes you will deploy your code to.
+
+Usage instructions will follow once I finish writing the tests... :)
+
+As usual, if it breaks you get to keep both pieces.
View
7 test/cobbler_connection_test.rb
@@ -11,4 +11,11 @@ def test_management_class_is_passed_correctly
cobbler_connection = CapistranoCobbler.new('www','localhost')
assert_equal('www',cobbler_connection.mgmt_class)
end
+
+ def test_data_is_retrieved_from_cobbler
+ cobbler_connection = CapistranoCobbler.new('www','localhost')
+ servers = cobbler_connection.get_servers
+ puts servers
+ assert_equal('testserver',servers[0])
+ end
end

0 comments on commit c57d65f

Please sign in to comment.