fingercap 0.1 → 0.2
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.
- data/lib/fingercap/configurations/ec2.rb +25 -0
- metadata +4 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
require 'fingercap/recipes'
|
|
2
|
+
|
|
3
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
|
4
|
+
default_run_options[:pty] = true
|
|
5
|
+
|
|
6
|
+
set :runner, 'app'
|
|
7
|
+
set :user, 'deploy'
|
|
8
|
+
set :deploy_to, "/var/www/#{application}"
|
|
9
|
+
|
|
10
|
+
namespace :deploy do
|
|
11
|
+
desc "Make sure the permissions are correct for all the directories"
|
|
12
|
+
task :fix_permissions do
|
|
13
|
+
try_sudo "chown -R #{user}:wheel #{deploy_to}"
|
|
14
|
+
try_sudo "chown -R #{fetch(:runner, "app")}:wheel #{shared_path}"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
namespace :db do
|
|
18
|
+
desc "Create the production database defined in config/database.yml."
|
|
19
|
+
task :create do
|
|
20
|
+
rake = fetch(:rake, "rake")
|
|
21
|
+
run "cd #{current_path}; #{rake} RAILS_ENV=production db:create"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fingercap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: "0.
|
|
4
|
+
version: "0.2"
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Manfred Stienstra
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-
|
|
12
|
+
date: 2008-11-20 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -23,6 +23,7 @@ extra_rdoc_files:
|
|
|
23
23
|
- README
|
|
24
24
|
- LICENSE
|
|
25
25
|
files:
|
|
26
|
+
- lib/fingercap/configurations/ec2.rb
|
|
26
27
|
- lib/fingercap/configurations/miller.rb
|
|
27
28
|
- lib/fingercap/persistant_directory.rb
|
|
28
29
|
- lib/fingercap/recipes/apache.rb
|
|
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
54
55
|
requirements: []
|
|
55
56
|
|
|
56
57
|
rubyforge_project:
|
|
57
|
-
rubygems_version: 1.
|
|
58
|
+
rubygems_version: 1.3.1
|
|
58
59
|
signing_key:
|
|
59
60
|
specification_version: 2
|
|
60
61
|
summary: Fingercap is a set of recipes and tasks meant for deploying to Fingertips servers.
|