Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial publish to github

  • Loading branch information...
commit c57d65f9e06ae979fa0fddb9f2cb38406c11e489 1 parent ecb2865
Matthew Macdonald-Wallace authored

Showing 2 changed files with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. +8 0 README
  2. +7 0 test/cobbler_connection_test.rb
8 README
... ... @@ -0,0 +1,8 @@
  1 +CapistranoCobbler
  2 +=================
  3 +
  4 +This recipe for cobbler enables you to use the management classes in cobbler to automatically determine the nodes you will deploy your code to.
  5 +
  6 +Usage instructions will follow once I finish writing the tests... :)
  7 +
  8 +As usual, if it breaks you get to keep both pieces.
7 test/cobbler_connection_test.rb
@@ -11,4 +11,11 @@ def test_management_class_is_passed_correctly
11 11 cobbler_connection = CapistranoCobbler.new('www','localhost')
12 12 assert_equal('www',cobbler_connection.mgmt_class)
13 13 end
  14 +
  15 + def test_data_is_retrieved_from_cobbler
  16 + cobbler_connection = CapistranoCobbler.new('www','localhost')
  17 + servers = cobbler_connection.get_servers
  18 + puts servers
  19 + assert_equal('testserver',servers[0])
  20 + end
14 21 end

0 comments on commit c57d65f

Please sign in to comment.
Something went wrong with that request. Please try again.