serverspec 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -103,7 +103,7 @@ Serverspec is supporting Red Hat based OS, Debian based OS, Gentoo and Solaris.
103
103
 
104
104
  Serverspec can detect target host's OS automatically.
105
105
 
106
- If you'd like to set target host's OS explicitly, you should include `Serverspec::Helper::OSName` like this.
106
+ If you'd like to set target host's OS explicitly, you should include `Serverspec::Helper::OSName` in `spec/spec_helper.rb` like this.
107
107
 
108
108
 
109
109
  ```ruby
@@ -131,6 +131,8 @@ RSpec.configure do |c|
131
131
  end
132
132
  ```
133
133
 
134
+ You can select **Serverspec::Helper::RedHat**, **Serverspec::Helper::Debian**, **Serverspec::Helper::Gentoo** or **Serverspec::Helper::Solaris**.
135
+
134
136
  See details on [serverspec.org](http://serverspec.org)
135
137
 
136
138
  ----
@@ -1,7 +1,7 @@
1
1
  module Serverspec
2
2
  module Helper
3
3
  module Exec
4
- def backend(commmands_object=nil)
4
+ def backend(commands_object=nil)
5
5
  Serverspec::Backend::Exec.new(commands_object || commands)
6
6
  end
7
7
  end
@@ -123,6 +123,10 @@ EOF
123
123
  c.ssh = Net::SSH.start(c.host, user, options)
124
124
  c.os = backend(Serverspec::Commands::Base).check_os
125
125
  end
126
+ end")
127
+ when 'Exec'
128
+ content.gsub!(/### include backend conf ###/, "c.before do
129
+ c.os = backend(Serverspec::Commands::Base).check_os
126
130
  end")
127
131
  when 'Puppet'
128
132
  content.gsub!(/### include requirements ###/, "require 'puppet'\nrequire 'serverspec/backend/puppet'
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 8
10
- version: 0.2.8
9
+ - 9
10
+ version: 0.2.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gosuke Miyashita
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-04-13 00:00:00 +09:00
18
+ date: 2013-04-15 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency