dnapi 1.1.83 → 1.1.84.php

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module DNApi
11
11
 
12
12
  NAME = 'Node.js'.freeze
13
13
  VERSION = '0.6'.freeze
14
- PATCH_LEVEL = '8'.freeze
14
+ PATCH_LEVEL = '1'.freeze
15
15
 
16
16
  def self.label
17
17
  "#{NAME} - #{version}"
@@ -0,0 +1,26 @@
1
+ module DNApi
2
+ module Components
3
+ class PHP < VersionedComponent.new(:key)
4
+ include Component
5
+ desc "Hypertext Preprocessor scripting language"
6
+ key :php
7
+ belongs_to Environment
8
+
9
+ NAME = 'PHP'.freeze
10
+ VERSION = '5.3'.freeze
11
+ PATCH_LEVEL = '9'.freeze
12
+
13
+ def self.label
14
+ "#{NAME} - #{version}"
15
+ end
16
+
17
+ def self.version
18
+ "#{VERSION}.#{PATCH_LEVEL}"
19
+ end
20
+
21
+ def self.package
22
+ 'dev-lang/php'
23
+ end
24
+ end
25
+ end
26
+ end
@@ -212,7 +212,7 @@ module DNApi
212
212
  belongs_to Environment
213
213
 
214
214
  NAME = 'Rubinius'.freeze
215
- VERSION = '2.0.0-r3'.freeze
215
+ VERSION = '2.0.0-r2'.freeze
216
216
  VM_VERSION = '1.8'.freeze
217
217
  PATCH_LEVEL = nil
218
218
 
@@ -247,7 +247,7 @@ module DNApi
247
247
  belongs_to Environment
248
248
 
249
249
  NAME = 'Rubinius'.freeze
250
- VERSION = '2.0.0-r3'.freeze
250
+ VERSION = '2.0.0'.freeze
251
251
  VM_VERSION = '1.9'.freeze
252
252
  PATCH_LEVEL = nil
253
253
 
@@ -10,7 +10,7 @@ module DNApi
10
10
 
11
11
  NAME = 'V8'.freeze
12
12
  VERSION = '3.6'.freeze
13
- PATCH_LEVEL = '6.19'.freeze
13
+ PATCH_LEVEL = '6.7'.freeze
14
14
 
15
15
  def self.label
16
16
  "#{NAME} - #{version}"
@@ -41,7 +41,8 @@ module DNApi
41
41
  component(:ree) || component(:ruby_192) ||
42
42
  component(:jruby_187) || component(:jruby_192) ||
43
43
  component(:rubinius) || component(:ruby_193) ||
44
- component(:nodejs) || component(:rubinius19)
44
+ component(:nodejs) || component(:rubinius19) ||
45
+ component(:php)
45
46
  end
46
47
 
47
48
  def stack
data/lib/dnapi/recipe.rb CHANGED
@@ -16,6 +16,7 @@ module DNApi
16
16
  Trinidad = new(:name => 'trinidad')
17
17
  Thin = new(:name => 'thin')
18
18
  Puma = new(:name => 'puma')
19
+ PHP = new(:name => 'php')
19
20
 
20
21
  def self.defaults
21
22
  [Memcached, Monit]
@@ -24,7 +25,7 @@ module DNApi
24
25
  def self.all
25
26
  [Monit, Memcached, Nginx, NginxPassenger, ApachePassenger,
26
27
  Mongrel, Unicorn, Mysql51, Mysql55, Nginxtcp, Node,
27
- Trinidad,Thin,Puma]
28
+ Trinidad, Thin, Puma, PHP]
28
29
  end
29
30
  end
30
31
  end
data/lib/dnapi/stack.rb CHANGED
@@ -81,9 +81,15 @@ module DNApi
81
81
  :ruby_versions => DNApi::Components::RubyVersion.all,
82
82
  :recipes => [Recipe::Nginx, Recipe::Puma])
83
83
 
84
+ NginxPHP = new(:name => 'nginx_fpm',
85
+ :label => 'PHP-FPM',
86
+ :web_server => :nginx,
87
+ :rack_server => :fpm,
88
+ :ruby_versions => [DNApi::Components::PHP],
89
+ :recipes => [Recipe::Nginx, Recipe::PHP])
84
90
 
85
91
  def self.all
86
- [NginxMongrel, NginxPassenger, NginxPassenger3, ApachePassenger, NginxUnicorn, Trinidad, Nginxtcp,NginxThin,NginxPuma]
92
+ [NginxMongrel, NginxPassenger, NginxPassenger3, ApachePassenger, NginxUnicorn, Trinidad, Nginxtcp, NginxThin, NginxPuma, NginxPHP]
87
93
  end
88
94
 
89
95
  def self.get(name)
data/lib/dnapi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DNApi
2
- VERSION = '1.1.83'
2
+ VERSION = '1.1.84.php'
3
3
  end
@@ -8,8 +8,8 @@ describe DNApi::Components::NodeJS do
8
8
 
9
9
  describe "#label" do
10
10
  it "should have the right label" do
11
- described_class.label.should == 'Node.js - 0.6.8'
12
- @nodejs.label.should == 'Node.js - 0.6.8'
11
+ described_class.label.should == 'Node.js - 0.6.1'
12
+ @nodejs.label.should == 'Node.js - 0.6.1'
13
13
  end
14
14
  end
15
15
 
@@ -22,6 +22,6 @@ describe DNApi::Components::NodeJS do
22
22
  end
23
23
 
24
24
  describe "#patch_level" do
25
- it { @nodejs.patch_level.should == '8' }
25
+ it { @nodejs.patch_level.should == '1' }
26
26
  end
27
27
  end
@@ -217,7 +217,7 @@ describe DNApi::Components::Rubinius do
217
217
 
218
218
  describe "#version" do
219
219
  it 'is 2.0' do
220
- @ruby.version.should == '2.0.0-r3'
220
+ @ruby.version.should == '2.0.0-r2'
221
221
  end
222
222
  end
223
223
 
@@ -254,7 +254,7 @@ describe DNApi::Components::Rubinius19 do
254
254
 
255
255
  describe "#version" do
256
256
  it 'is 2.0.0' do
257
- @ruby.version.should == '2.0.0-r3'
257
+ @ruby.version.should == '2.0.0'
258
258
  end
259
259
  end
260
260
 
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnapi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 181
5
- prerelease:
4
+ hash: 961239181
5
+ prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 83
10
- version: 1.1.83
9
+ - 84
10
+ - php
11
+ version: 1.1.84.php
11
12
  platform: ruby
12
13
  authors:
13
14
  - Engine Yard
@@ -15,7 +16,8 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-07-26 00:00:00 Z
19
+ date: 2011-07-26 00:00:00 -07:00
20
+ default_executable:
19
21
  dependencies:
20
22
  - !ruby/object:Gem::Dependency
21
23
  name: json
@@ -82,6 +84,7 @@ files:
82
84
  - lib/dnapi/components/newrelic.rb
83
85
  - lib/dnapi/components/nodejs.rb
84
86
  - lib/dnapi/components/passenger3.rb
87
+ - lib/dnapi/components/php.rb
85
88
  - lib/dnapi/components/ruby.rb
86
89
  - lib/dnapi/components/ssmtp.rb
87
90
  - lib/dnapi/components/stunneled.rb
@@ -124,6 +127,7 @@ files:
124
127
  - spec/spec_helper.rb
125
128
  - spec/stack_spec.rb
126
129
  - spec/struct_spec.rb
130
+ has_rdoc: true
127
131
  homepage: http://github.com/engineyard/dnapi
128
132
  licenses: []
129
133
 
@@ -155,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
159
  requirements: []
156
160
 
157
161
  rubyforge_project:
158
- rubygems_version: 1.8.6
162
+ rubygems_version: 1.3.7
159
163
  signing_key:
160
164
  specification_version: 3
161
165
  summary: API for chef DNA.