dnapi 1.1.81.php → 1.1.81
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dnapi/environment.rb +1 -2
- data/lib/dnapi/recipe.rb +3 -3
- data/lib/dnapi/stack.rb +3 -9
- data/lib/dnapi/version.rb +1 -1
- data/spec/stack_spec.rb +2 -2
- metadata +74 -46
- data/lib/dnapi/components/php.rb +0 -26
data/lib/dnapi/environment.rb
CHANGED
@@ -41,8 +41,7 @@ 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)
|
45
|
-
component(:php)
|
44
|
+
component(:nodejs) || component(:rubinius19)
|
46
45
|
end
|
47
46
|
|
48
47
|
def stack
|
data/lib/dnapi/recipe.rb
CHANGED
@@ -3,8 +3,9 @@ module DNApi
|
|
3
3
|
Monit = new(:name => 'monit')
|
4
4
|
Memcached = new(:name => 'memcached')
|
5
5
|
Nginx = new(:name => 'nginx')
|
6
|
-
NginxPassenger = new(:name => 'nginx
|
6
|
+
NginxPassenger = new(:name => 'passenger::nginx')
|
7
7
|
Passenger = new(:name => 'passenger')
|
8
|
+
Passenger3 = new(:name => 'passenger3')
|
8
9
|
ApachePassenger = new(:name => 'passenger::apache')
|
9
10
|
Mongrel = new(:name => 'mongrel')
|
10
11
|
Unicorn = new(:name => 'unicorn')
|
@@ -15,7 +16,6 @@ module DNApi
|
|
15
16
|
Trinidad = new(:name => 'trinidad')
|
16
17
|
Thin = new(:name => 'thin')
|
17
18
|
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,
|
27
|
+
Trinidad,Thin,Puma]
|
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::NginxPassenger])
|
28
|
+
:recipes => [Recipe::Nginx, Recipe::Passenger, 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::
|
37
|
+
:recipes => [Recipe::Nginx, Recipe::Passenger3])
|
38
38
|
|
39
39
|
#FIXME: Remove
|
40
40
|
ApachePassenger = new(:name => 'apache_passenger',
|
@@ -81,15 +81,9 @@ 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])
|
90
84
|
|
91
85
|
def self.all
|
92
|
-
[NginxMongrel, NginxPassenger, NginxPassenger3, ApachePassenger, NginxUnicorn, Trinidad, Nginxtcp,
|
86
|
+
[NginxMongrel, NginxPassenger, NginxPassenger3, ApachePassenger, NginxUnicorn, Trinidad, Nginxtcp,NginxThin,NginxPuma]
|
93
87
|
end
|
94
88
|
|
95
89
|
def self.get(name)
|
data/lib/dnapi/version.rb
CHANGED
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::NginxPassenger]
|
41
|
+
DNApi::Stack::NginxPassenger.recipes.should == [DNApi::Recipe::Nginx, DNApi::Recipe::Passenger, 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::
|
56
|
+
DNApi::Stack::NginxPassenger3.recipes.should == [DNApi::Recipe::Nginx, DNApi::Recipe::Passenger3]
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
metadata
CHANGED
@@ -1,56 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnapi
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 177
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 81
|
10
|
+
version: 1.1.81
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Engine Yard
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-07-26 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: json
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
22
32
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
26
35
|
name: extlib
|
27
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
38
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
33
46
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
37
49
|
name: sexp_processor
|
38
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
52
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
44
60
|
type: :runtime
|
45
|
-
|
46
|
-
version_requirements: *70243759136340
|
61
|
+
version_requirements: *id003
|
47
62
|
description: API for chef DNA.
|
48
|
-
email:
|
63
|
+
email:
|
49
64
|
- gems@engineyard.com
|
50
65
|
executables: []
|
66
|
+
|
51
67
|
extensions: []
|
68
|
+
|
52
69
|
extra_rdoc_files: []
|
53
|
-
|
70
|
+
|
71
|
+
files:
|
54
72
|
- lib/dnapi/app.rb
|
55
73
|
- lib/dnapi/component.rb
|
56
74
|
- lib/dnapi/component_possessor.rb
|
@@ -64,7 +82,6 @@ files:
|
|
64
82
|
- lib/dnapi/components/newrelic.rb
|
65
83
|
- lib/dnapi/components/nodejs.rb
|
66
84
|
- lib/dnapi/components/passenger3.rb
|
67
|
-
- lib/dnapi/components/php.rb
|
68
85
|
- lib/dnapi/components/ruby.rb
|
69
86
|
- lib/dnapi/components/ssmtp.rb
|
70
87
|
- lib/dnapi/components/stunneled.rb
|
@@ -109,29 +126,40 @@ files:
|
|
109
126
|
- spec/struct_spec.rb
|
110
127
|
homepage: http://github.com/engineyard/dnapi
|
111
128
|
licenses: []
|
129
|
+
|
112
130
|
post_install_message:
|
113
131
|
rdoc_options: []
|
114
|
-
|
132
|
+
|
133
|
+
require_paths:
|
115
134
|
- lib
|
116
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
117
136
|
none: false
|
118
|
-
requirements:
|
119
|
-
- -
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
122
|
-
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
hash: 3
|
141
|
+
segments:
|
142
|
+
- 0
|
143
|
+
version: "0"
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
145
|
none: false
|
124
|
-
requirements:
|
125
|
-
- -
|
126
|
-
- !ruby/object:Gem::Version
|
146
|
+
requirements:
|
147
|
+
- - ">"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
hash: 25
|
150
|
+
segments:
|
151
|
+
- 1
|
152
|
+
- 3
|
153
|
+
- 1
|
127
154
|
version: 1.3.1
|
128
155
|
requirements: []
|
156
|
+
|
129
157
|
rubyforge_project:
|
130
|
-
rubygems_version: 1.8.
|
158
|
+
rubygems_version: 1.8.6
|
131
159
|
signing_key:
|
132
160
|
specification_version: 3
|
133
161
|
summary: API for chef DNA.
|
134
|
-
test_files:
|
162
|
+
test_files:
|
135
163
|
- spec/app_spec.rb
|
136
164
|
- spec/component_spec.rb
|
137
165
|
- spec/components/addons_spec.rb
|
data/lib/dnapi/components/php.rb
DELETED
@@ -1,26 +0,0 @@
|
|
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
|