if-vlad-recipes 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -0,0 +1,34 @@
|
|
1
|
+
namespace :vlad do
|
2
|
+
namespace :if do
|
3
|
+
namespace :local do
|
4
|
+
|
5
|
+
desc "Updates your application server to the latest revision stored
|
6
|
+
in a folder on the local filesystem".cleanup
|
7
|
+
|
8
|
+
remote_task :update, :roles => :app do
|
9
|
+
symlink = false
|
10
|
+
begin
|
11
|
+
#we need to have local_source_path set
|
12
|
+
unless local_source_path then
|
13
|
+
raise "Error, local_source_path not set. Please set local_source_path
|
14
|
+
to point to the directory you're trying to local deploy from".cleanup
|
15
|
+
end
|
16
|
+
|
17
|
+
run [
|
18
|
+
"mkdir -p #{release_path}",
|
19
|
+
"cp -R #{local_source_path}/* #{release_path}",
|
20
|
+
"chmod -R g+w #{latest_release}",
|
21
|
+
].join(" && ")
|
22
|
+
|
23
|
+
symlink = true
|
24
|
+
run "rm -f #{current_path} && ln -s #{latest_release} #{current_path}"
|
25
|
+
run "echo #{Time.now} $USER #{revision} #{File.basename release_path} >> #{deploy_to}/revisions.log"
|
26
|
+
rescue => e
|
27
|
+
run "rm -f #{current_path} && ln -s #{previous_release} #{current_path}" if symlink
|
28
|
+
run "rm -rf #{release_path}"
|
29
|
+
raise
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -16,13 +16,11 @@ namespace :vlad do
|
|
16
16
|
|
17
17
|
symlink = true
|
18
18
|
run "rm -f #{current_path} && ln -s #{latest_release} #{current_path}"
|
19
|
-
|
20
19
|
run "echo #{Time.now} $USER #{revision} #{File.basename release_path} >> #{deploy_to}/revisions.log"
|
21
20
|
rescue => e
|
22
|
-
run "rm -f #{current_path} && ln -s #{previous_release} #{current_path}" if
|
23
|
-
symlink
|
21
|
+
run "rm -f #{current_path} && ln -s #{previous_release} #{current_path}" if symlink
|
24
22
|
run "rm -rf #{release_path}"
|
25
|
-
raise
|
23
|
+
raise
|
26
24
|
end
|
27
25
|
end
|
28
26
|
end
|
data/lib/if-vlad-recipes.rb
CHANGED
@@ -1,19 +1,7 @@
|
|
1
1
|
require 'vlad'
|
2
2
|
|
3
|
-
#require custom IF recipes
|
4
|
-
|
5
|
-
require 'if-vlad-recipes/maintenance'
|
6
|
-
require 'if-vlad-recipes/gems'
|
7
|
-
require 'if-vlad-recipes/thinking_sphinx'
|
8
|
-
require 'if-vlad-recipes/migrate'
|
9
|
-
require 'if-vlad-recipes/cleanup'
|
10
|
-
require 'if-vlad-recipes/start_stop'
|
11
|
-
require 'if-vlad-recipes/symlink'
|
12
|
-
require 'if-vlad-recipes/touch'
|
13
|
-
require 'if-vlad-recipes/current_branch_file'
|
14
|
-
require 'if-vlad-recipes/update_crontab'
|
15
|
-
require 'if-vlad-recipes/git_with_submodule_support'
|
16
|
-
|
3
|
+
#require all custom IF recipes
|
4
|
+
Dir[File.dirname(__FILE__) + '/if-vlad-recipes/*.rb'].each {|file| require file}
|
17
5
|
|
18
6
|
#require deploy script
|
19
7
|
begin
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: if-vlad-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Aaron
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-11-
|
13
|
+
date: 2009-11-26 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -47,6 +47,7 @@ files:
|
|
47
47
|
- lib/if-vlad-recipes/symlink.rb
|
48
48
|
- lib/if-vlad-recipes/thinking_sphinx.rb
|
49
49
|
- lib/if-vlad-recipes/touch.rb
|
50
|
+
- lib/if-vlad-recipes/update-from-local.rb
|
50
51
|
- lib/if-vlad-recipes/update.rb
|
51
52
|
- lib/if-vlad-recipes/update_crontab.rb
|
52
53
|
has_rdoc: true
|