dnapi 1.1.81.passenger.2 → 1.1.81.php

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.2'.freeze
11
+ PATCH_LEVEL = '8'.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
@@ -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
@@ -3,9 +3,8 @@ module DNApi
3
3
  Monit = new(:name => 'monit')
4
4
  Memcached = new(:name => 'memcached')
5
5
  Nginx = new(:name => 'nginx')
6
- NginxPassenger = new(:name => 'passenger::nginx')
6
+ NginxPassenger = new(:name => 'nginx-passenger')
7
7
  Passenger = new(:name => 'passenger')
8
- Passenger3 = new(:name => 'passenger3')
9
8
  ApachePassenger = new(:name => 'passenger::apache')
10
9
  Mongrel = new(:name => 'mongrel')
11
10
  Unicorn = new(:name => 'unicorn')
@@ -16,6 +15,7 @@ module DNApi
16
15
  Trinidad = new(:name => 'trinidad')
17
16
  Thin = new(:name => 'thin')
18
17
  Puma = new(:name => 'puma')
18
+ PHP = new(:name => 'php')
19
19
 
20
20
  def self.defaults
21
21
  [Memcached, Monit]
@@ -24,7 +24,7 @@ module DNApi
24
24
  def self.all
25
25
  [Monit, Memcached, Nginx, NginxPassenger, ApachePassenger,
26
26
  Mongrel, Unicorn, Mysql51, Mysql55, Nginxtcp, Node,
27
- Trinidad,Thin,Puma]
27
+ Trinidad, Thin, Puma, PHP]
28
28
  end
29
29
  end
30
30
  end
data/lib/dnapi/stack.rb CHANGED
@@ -25,7 +25,7 @@ module DNApi
25
25
  DNApi::Components::JRuby192,
26
26
  DNApi::Components::Rubinius,
27
27
  DNApi::Components::Rubinius19]),
28
- :recipes => [Recipe::Nginx, Recipe::Passenger, Recipe::NginxPassenger])
28
+ :recipes => [Recipe::Nginx, Recipe::NginxPassenger])
29
29
 
30
30
  NginxPassenger3 = new(:name => 'nginx_passenger3',
31
31
  :label => 'Passenger 3',
@@ -34,7 +34,7 @@ module DNApi
34
34
  :ruby_versions => (DNApi::Components::RubyVersion.all - [DNApi::Components::JRuby187,
35
35
  DNApi::Components::JRuby192,
36
36
  DNApi::Components::Ruby186]),
37
- :recipes => [Recipe::Nginx, Recipe::Passenger3])
37
+ :recipes => [Recipe::Nginx, Recipe::NginxPassenger])
38
38
 
39
39
  #FIXME: Remove
40
40
  ApachePassenger = new(:name => 'apache_passenger',
@@ -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 => 'php_fcgi',
85
+ :label => 'PHP + FastCGI',
86
+ :web_server => :nginx,
87
+ :rack_server => :fastcgi,
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.81.passenger.2'
2
+ VERSION = '1.1.81.php'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.81.passenger.2
4
+ version: 1.1.81.php
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-26 00:00:00.000000000 Z
12
+ date: 2011-07-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &2158311100 !ruby/object:Gem::Requirement
16
+ requirement: &70243759137500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2158311100
24
+ version_requirements: *70243759137500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: extlib
27
- requirement: &2158310620 !ruby/object:Gem::Requirement
27
+ requirement: &70243759136880 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2158310620
35
+ version_requirements: *70243759136880
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sexp_processor
38
- requirement: &2158310140 !ruby/object:Gem::Requirement
38
+ requirement: &70243759136340 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2158310140
46
+ version_requirements: *70243759136340
47
47
  description: API for chef DNA.
48
48
  email:
49
49
  - gems@engineyard.com
@@ -64,6 +64,7 @@ files:
64
64
  - lib/dnapi/components/newrelic.rb
65
65
  - lib/dnapi/components/nodejs.rb
66
66
  - lib/dnapi/components/passenger3.rb
67
+ - lib/dnapi/components/php.rb
67
68
  - lib/dnapi/components/ruby.rb
68
69
  - lib/dnapi/components/ssmtp.rb
69
70
  - lib/dnapi/components/stunneled.rb
@@ -149,4 +150,3 @@ test_files:
149
150
  - spec/spec_helper.rb
150
151
  - spec/stack_spec.rb
151
152
  - spec/struct_spec.rb
152
- has_rdoc: