inploy 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/inploy/cli.rb +11 -1
- data/lib/inploy/deploy.rb +5 -1
- data/lib/inploy/templates/rails3.rb +7 -1
- metadata +9 -4
data/Rakefile
CHANGED
data/lib/inploy/cli.rb
CHANGED
@@ -8,7 +8,17 @@ module Inploy
|
|
8
8
|
when 1
|
9
9
|
deploy.send "remote_#{params.first}"
|
10
10
|
when 2
|
11
|
-
deploy.
|
11
|
+
deploy.send "remote_#{params.first}", parse(params.last)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def self.parse(param)
|
18
|
+
if param.include? '='
|
19
|
+
{ :from => param.sub("from=", "") }
|
20
|
+
else
|
21
|
+
param
|
12
22
|
end
|
13
23
|
end
|
14
24
|
end
|
data/lib/inploy/deploy.rb
CHANGED
@@ -58,6 +58,10 @@ module Inploy
|
|
58
58
|
remote_run "cd #{application_path} && #{@sudo}rake inploy:local:update environment=#{environment}#{skip_steps_cmd}"
|
59
59
|
end
|
60
60
|
|
61
|
+
def remote_rake(task)
|
62
|
+
remote_run "rake #{task}"
|
63
|
+
end
|
64
|
+
|
61
65
|
def local_update
|
62
66
|
update_code
|
63
67
|
after_update_code
|
@@ -76,7 +80,7 @@ module Inploy
|
|
76
80
|
def after_update_code
|
77
81
|
run "git submodule update --init"
|
78
82
|
copy_sample_files
|
79
|
-
install_gems
|
83
|
+
return unless install_gems
|
80
84
|
migrate_database
|
81
85
|
update_crontab
|
82
86
|
clear_cache
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 6
|
8
|
-
-
|
9
|
-
version: 1.6.
|
9
|
+
- 4
|
10
|
+
version: 1.6.4
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Diego Carrion
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-08-07 00:00:00 -03:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -53,23 +54,27 @@ rdoc_options: []
|
|
53
54
|
require_paths:
|
54
55
|
- lib
|
55
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
56
58
|
requirements:
|
57
59
|
- - ">="
|
58
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 3
|
59
62
|
segments:
|
60
63
|
- 0
|
61
64
|
version: "0"
|
62
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
63
67
|
requirements:
|
64
68
|
- - ">="
|
65
69
|
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
66
71
|
segments:
|
67
72
|
- 0
|
68
73
|
version: "0"
|
69
74
|
requirements: []
|
70
75
|
|
71
76
|
rubyforge_project: inploy
|
72
|
-
rubygems_version: 1.3.
|
77
|
+
rubygems_version: 1.3.7
|
73
78
|
signing_key:
|
74
79
|
specification_version: 3
|
75
80
|
summary: Rails deployment made easy
|