inploy 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +2 -0
- data/Rakefile +1 -1
- data/lib/inploy/deploy.rb +2 -1
- data/lib/inploy/dsl.rb +6 -2
- data/lib/inploy/helper.rb +2 -2
- metadata +3 -6
data/README.textile
CHANGED
@@ -63,6 +63,7 @@ When using Inploy with Rake, there are five tasks:
|
|
63
63
|
- cleans the cache, default tmp/cache
|
64
64
|
- cleans cached assets in public/assets if Jammit is installed
|
65
65
|
- parses less files if more:parse tasks exists
|
66
|
+
- parses compass files if config/initializers/compass.rb exists
|
66
67
|
- package the assets if asset:packager:build_all task exists
|
67
68
|
- notifies Hoptoad about the deploy, specifing the revision, repository and environment
|
68
69
|
- notifies NewRelic RPM about the deploy
|
@@ -79,6 +80,7 @@ When using Inploy with Rake, there are five tasks:
|
|
79
80
|
- cleans the cache, default tmp/cache
|
80
81
|
- cleans cached assets in public/assets if Jammit is installed
|
81
82
|
- parses less files if more:parse tasks exists
|
83
|
+
- parses compass files if config/initializers/compass.rb exists
|
82
84
|
- package the assets if asset:packager:build_all task exists
|
83
85
|
- notifies Hoptoad about the deploy, specifing the revision, repository and environment
|
84
86
|
- notifies NewRelic RPM about the deploy
|
data/Rakefile
CHANGED
data/lib/inploy/deploy.rb
CHANGED
@@ -50,7 +50,7 @@ module Inploy
|
|
50
50
|
create_folders 'tmp/pids', 'db'
|
51
51
|
copy_sample_files
|
52
52
|
rake "db:create RAILS_ENV=#{environment}"
|
53
|
-
run "./init.sh" if
|
53
|
+
run "./init.sh" if file_exists?("init.sh")
|
54
54
|
after_update_code
|
55
55
|
end
|
56
56
|
|
@@ -86,6 +86,7 @@ module Inploy
|
|
86
86
|
clear_cache
|
87
87
|
run "rm -R -f public/assets" if jammit_is_installed?
|
88
88
|
rake_if_included "more:parse"
|
89
|
+
run "compass compile" if file_exists?("config/initializers/compass.rb")
|
89
90
|
rake_if_included "asset:packager:build_all"
|
90
91
|
rake_if_included "hoptoad:deploy RAILS_ENV=#{environment} TO=#{environment} REPO=#{repository} REVISION=#{`git log | head -1 | cut -d ' ' -f 2`}"
|
91
92
|
ruby_if_exists "vendor/plugins/newrelic_rpm/bin/newrelic_cmd", :params => "deployments"
|
data/lib/inploy/dsl.rb
CHANGED
@@ -26,7 +26,7 @@ module Inploy
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def ruby_if_exists(file, opts)
|
29
|
-
run "ruby #{file} #{opts[:params]}" if
|
29
|
+
run "ruby #{file} #{opts[:params]}" if file_exists?(file)
|
30
30
|
end
|
31
31
|
|
32
32
|
def sudo_if_should
|
@@ -51,10 +51,14 @@ module Inploy
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def secure_copy(src, dest)
|
54
|
-
unless
|
54
|
+
unless file_exists?(dest)
|
55
55
|
log "mv #{src} #{dest}"
|
56
56
|
FileUtils.cp src, dest
|
57
57
|
end
|
58
58
|
end
|
59
|
+
|
60
|
+
def file_exists?(file)
|
61
|
+
File.exists? file
|
62
|
+
end
|
59
63
|
end
|
60
64
|
end
|
data/lib/inploy/helper.rb
CHANGED
@@ -21,7 +21,7 @@ module Inploy
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def jammit_is_installed?
|
24
|
-
|
24
|
+
file_exists?("config/assets.yml")
|
25
25
|
end
|
26
26
|
|
27
27
|
def host
|
@@ -57,7 +57,7 @@ module Inploy
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def update_crontab
|
60
|
-
run "whenever --update-crontab #{application} --set 'environment=#{environment}'" if
|
60
|
+
run "whenever --update-crontab #{application} --set 'environment=#{environment}'" if file_exists?("config/schedule.rb") unless skip_step?('update_crontab')
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 5
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
8
|
+
- 6
|
9
|
+
version: 1.6.6
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Diego Carrion
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-15 00:00:00 -03:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -58,7 +57,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
59
58
|
- - ">="
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 3
|
62
60
|
segments:
|
63
61
|
- 0
|
64
62
|
version: "0"
|
@@ -67,7 +65,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
65
|
requirements:
|
68
66
|
- - ">="
|
69
67
|
- !ruby/object:Gem::Version
|
70
|
-
hash: 3
|
71
68
|
segments:
|
72
69
|
- 0
|
73
70
|
version: "0"
|