dnapi 1.1.81 → 1.1.82.php

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -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 => '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.81'
2
+ VERSION = '1.1.82.php'
3
3
  end
data/spec/stack_spec.rb CHANGED
@@ -38,7 +38,7 @@ describe DNApi::Stack do
38
38
 
39
39
  describe "NginxPassenger" do
40
40
  it 'has nginx & nginx-passenger for recipes' do
41
- DNApi::Stack::NginxPassenger.recipes.should == [DNApi::Recipe::Nginx, DNApi::Recipe::Passenger, DNApi::Recipe::NginxPassenger]
41
+ DNApi::Stack::NginxPassenger.recipes.should == [DNApi::Recipe::Nginx, DNApi::Recipe::NginxPassenger]
42
42
  end
43
43
 
44
44
  it 'does not support JRuby' do
@@ -53,7 +53,7 @@ describe DNApi::Stack do
53
53
  end
54
54
 
55
55
  it 'has nginx & nginx-passenger for recipes' do
56
- DNApi::Stack::NginxPassenger3.recipes.should == [DNApi::Recipe::Nginx, DNApi::Recipe::Passenger3]
56
+ DNApi::Stack::NginxPassenger.recipes.should == [DNApi::Recipe::Nginx, DNApi::Recipe::NginxPassenger]
57
57
  end
58
58
  end
59
59
 
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: 177
5
- prerelease:
4
+ hash: 961239189
5
+ prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 81
10
- version: 1.1.81
9
+ - 82
10
+ - php
11
+ version: 1.1.82.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.