factorylabs-fdlcap 0.3.11 → 0.3.15
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fdlcap.gemspec +3 -2
- data/lib/fdlcap/recipes/geminstaller.rb +5 -5
- data/lib/fdlcap/recipes/sinatra_passenger.rb +18 -0
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.15
|
data/fdlcap.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fdlcap}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.15"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Factory Design Labs"]
|
12
|
-
s.date = %q{2009-08-
|
12
|
+
s.date = %q{2009-08-24}
|
13
13
|
s.default_executable = %q{fdlcap}
|
14
14
|
s.email = %q{interactive@factorylabs.com}
|
15
15
|
s.executables = ["fdlcap"]
|
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
|
|
47
47
|
"lib/fdlcap/recipes/rsync.rb",
|
48
48
|
"lib/fdlcap/recipes/ruby_inline.rb",
|
49
49
|
"lib/fdlcap/recipes/sass.rb",
|
50
|
+
"lib/fdlcap/recipes/sinatra_passenger.rb",
|
50
51
|
"lib/fdlcap/recipes/slice.rb",
|
51
52
|
"lib/fdlcap/recipes/ssh.rb",
|
52
53
|
"lib/fdlcap/recipes/stages.rb",
|
@@ -20,7 +20,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
20
20
|
task :run, :only => { :geminstaller => true } do
|
21
21
|
as = fetch(:runner, "app")
|
22
22
|
via = fetch(:run_method, :sudo)
|
23
|
-
invoke_command "/usr/bin/geminstaller -c #{current_path}/config/geminstaller.yml --geminstaller-output=all --rubygems-output=all", :via => via, :as => as
|
23
|
+
invoke_command "/usr/bin/geminstaller -s -c #{current_path}/config/geminstaller.yml --geminstaller-output=all --rubygems-output=all", :via => via, :as => as
|
24
24
|
end
|
25
25
|
|
26
26
|
desc <<-DESC
|
@@ -36,8 +36,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
39
|
-
|
40
|
-
#
|
39
|
+
|
40
|
+
#
|
41
41
|
# Callbacks
|
42
42
|
#
|
43
43
|
before "deploy:check", "geminstaller:add_remote_gem_dependencies"
|
@@ -45,5 +45,5 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
45
45
|
after "geminstaller:install", "geminstaller:run"
|
46
46
|
after "deploy:update", "geminstaller:run"
|
47
47
|
end
|
48
|
-
|
49
|
-
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Capistrano::Configuration.instance(:must_exist).load do
|
2
|
+
define_recipe :sinatra_passenger do
|
3
|
+
namespace :sinatra_passenger do
|
4
|
+
desc "Set file permissions"
|
5
|
+
task :chmod_directories_config do
|
6
|
+
run "cd #{release_path} && find -maxdepth 1 -type d -exec chmod 755 {} \\;"
|
7
|
+
end
|
8
|
+
|
9
|
+
desc "Set public folder permissions"
|
10
|
+
task :chmod_directories_public do
|
11
|
+
run "cd #{release_path}/public && find -type d -exec chmod 755 {} \\;"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
after "deploy:update_code", "sinatra_passenger:chmod_directories_config"
|
16
|
+
after "deploy:update_code", "sinatra_passenger:chmod_directories_public"
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factorylabs-fdlcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Factory Design Labs
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-24 00:00:00 -07:00
|
13
13
|
default_executable: fdlcap
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/fdlcap/recipes/rsync.rb
|
92
92
|
- lib/fdlcap/recipes/ruby_inline.rb
|
93
93
|
- lib/fdlcap/recipes/sass.rb
|
94
|
+
- lib/fdlcap/recipes/sinatra_passenger.rb
|
94
95
|
- lib/fdlcap/recipes/slice.rb
|
95
96
|
- lib/fdlcap/recipes/ssh.rb
|
96
97
|
- lib/fdlcap/recipes/stages.rb
|