lib/serverspec/setup.rb in serverspec-0.0.1 vs lib/serverspec/setup.rb in serverspec-0.0.2

- old
+ new

@@ -2,29 +2,29 @@ module Serverspec class Setup def self.run %w( spec spec/www.example.jp ).each { |dir| safe_mkdir(dir) } + safe_create_spec safe_create_spec_helper safe_create_rakefile - safe_create_spec end def self.safe_create_spec content = <<-EOF require 'spec_helper' -describe 'httpd' do +describe 'httpd', :os => :redhat do it { should be_installed } it { should be_enabled } it { should be_running } end -describe 'port 80' do +describe 'port 80', :os => :redhat do it { should be_listening } end -describe '/etc/httpd/conf/httpd.conf' do +describe '/etc/httpd/conf/httpd.conf', :os => :redhat do it { should be_file } it { should contain "ServerName www.example.jp" } end EOF