auser-poolparty-extensions 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.rdoc +20 -0
- data/VERSION.yml +4 -0
- data/lib/extensions/dynomite.rb +17 -0
- data/lib/extensions/rails_deploy.rb +40 -0
- data/lib/poolparty_extensions.rb +6 -0
- data/test/poolparty_extensions_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +63 -0
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Ari Lerner
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
= poolparty-extensions
|
2
|
+
|
3
|
+
Extensions to PoolParty!
|
4
|
+
|
5
|
+
Just install and include in your clouds.rb
|
6
|
+
|
7
|
+
clouds.rb
|
8
|
+
require "poolparty"
|
9
|
+
require "poolparty-extensions"
|
10
|
+
|
11
|
+
= Available extensions
|
12
|
+
|
13
|
+
dynomite
|
14
|
+
Installs edge dynomite from the git repository
|
15
|
+
rails_deploy
|
16
|
+
Installs rails_deploy
|
17
|
+
|
18
|
+
== Copyright
|
19
|
+
|
20
|
+
Copyright (c) 2009 Ari Lerner. See LICENSE for details.
|
data/VERSION.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
=begin rdoc
|
2
|
+
Installs edge dynomite from the git repository
|
3
|
+
=end
|
4
|
+
module PoolParty
|
5
|
+
class Base
|
6
|
+
plugin :dynomite do
|
7
|
+
|
8
|
+
def enable
|
9
|
+
has_exec "install dynomite" do
|
10
|
+
command "git clone git://github.com/cliffmoon/dynomite.git && cd dynomite && git submodule init && git submodule update && rake"
|
11
|
+
not_if "which tcrtest"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin rdoc
|
2
|
+
Deploy a rails application using chef_deploy
|
3
|
+
|
4
|
+
|
5
|
+
=end
|
6
|
+
module PoolParty
|
7
|
+
class Rails
|
8
|
+
|
9
|
+
define_resource :rails_deploy_structure do
|
10
|
+
default_options(
|
11
|
+
:create => true,
|
12
|
+
:to => "/var/www",
|
13
|
+
:owner => "www-data"
|
14
|
+
)
|
15
|
+
|
16
|
+
def loaded(o={}, &block)
|
17
|
+
|
18
|
+
has_directory ::File.dirname(to)
|
19
|
+
has_directory "#{::File.dirname(to)}/#{name}"
|
20
|
+
has_directory "#{::File.dirname(to)}/#{name}/shared", :owner => owner
|
21
|
+
|
22
|
+
%w(config pids log).each do |dir|
|
23
|
+
has_directory "#{::File.dirname(to)}/#{name}/shared/#{dir}"
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
plugin :rails_deploy do
|
30
|
+
|
31
|
+
def loaded(o={}, &block)
|
32
|
+
raise "You must include the directory to deploy the rails app" unless to?
|
33
|
+
raise "You must include the repo to deploy the rails app" unless repo?
|
34
|
+
has_chef_deploy o, &block
|
35
|
+
has_rails_deploy_structure o, &block
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: auser-poolparty-extensions
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ari Lerner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-04-30 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: arilerner@mac.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
|
+
- LICENSE
|
25
|
+
files:
|
26
|
+
- README.rdoc
|
27
|
+
- VERSION.yml
|
28
|
+
- lib/extensions
|
29
|
+
- lib/extensions/dynomite.rb
|
30
|
+
- lib/extensions/rails_deploy.rb
|
31
|
+
- lib/poolparty_extensions.rb
|
32
|
+
- test/poolparty_extensions_test.rb
|
33
|
+
- test/test_helper.rb
|
34
|
+
- LICENSE
|
35
|
+
has_rdoc: true
|
36
|
+
homepage: http://github.com/auser/poolparty-extensions
|
37
|
+
post_install_message:
|
38
|
+
rdoc_options:
|
39
|
+
- --inline-source
|
40
|
+
- --charset=UTF-8
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: "0"
|
48
|
+
version:
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: "0"
|
54
|
+
version:
|
55
|
+
requirements: []
|
56
|
+
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 1.2.0
|
59
|
+
signing_key:
|
60
|
+
specification_version: 3
|
61
|
+
summary: TODO
|
62
|
+
test_files: []
|
63
|
+
|