Permalink
Browse files

Merge branch 'master'; branch 'master' of github.com:bryanwb/chef-ark

Conflicts:
	Toftfile
  • Loading branch information...
2 parents 618ce50 + 738dd76 commit 5557346d4cf88b125eb2db5514de430ea0b33753 @bryanwb committed Apr 28, 2012
Showing with 11 additions and 14 deletions.
  1. +1 −0 .gitignore
  2. +10 −14 Toftfile
View
@@ -0,0 +1 @@
+*~
View
@@ -1,19 +1,15 @@
-time_start = Time.now
require 'rubygems'
require 'toft'
+
include Toft
-Toft.cookbook_path = '/home/hitman/chef-repo-opscode/site-cookbooks'
-n1 = create_node "n1", {:ip => '192.168.20.3'}
+
+n1 = create_node "n1", {:ip => '192.168.20.2'}
+
n1.start
-n1.run_ssh 'mkdir /tmp/chef-file-cache'
-n1.run_chef [
- 'recipe[chef_handler]',
- 'recipe[minitest-handler]',
- 'recipe[ark]',
- 'recipe[ark::test]'
- ]
-#n1.destroy
-time_end = Time.now
-total_time = time_end - time_start
-puts "Toft ran for #{total_time.to_s} seconds"
+n1.run_chef [ "recipe[chef_handler]", "recipe[minitest-handler::recipes]", "recipe[ark::test]" ]
+
+n1.stop
+
+n1.destroy
+

0 comments on commit 5557346

Please sign in to comment.