inploy 1.7.2 → 1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +6 -0
- data/Gemfile.lock +24 -0
- data/README.textile +8 -0
- data/Rakefile +6 -8
- data/lib/inploy/deploy.rb +1 -1
- data/lib/inploy/dsl.rb +1 -1
- data/lib/inploy/helper.rb +1 -1
- data/lib/inploy/templates/rails3_push.rb +2 -2
- data/lib/inploy/templates/sinatra.rb +6 -0
- data/lib/tasks/inploy.rake +1 -1
- metadata +8 -6
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.2)
|
5
|
+
fakefs (0.2.1)
|
6
|
+
rake (0.8.7)
|
7
|
+
rcov (0.9.9)
|
8
|
+
rspec (2.1.0)
|
9
|
+
rspec-core (~> 2.1.0)
|
10
|
+
rspec-expectations (~> 2.1.0)
|
11
|
+
rspec-mocks (~> 2.1.0)
|
12
|
+
rspec-core (2.1.0)
|
13
|
+
rspec-expectations (2.1.0)
|
14
|
+
diff-lcs (~> 1.1.2)
|
15
|
+
rspec-mocks (2.1.0)
|
16
|
+
|
17
|
+
PLATFORMS
|
18
|
+
ruby
|
19
|
+
|
20
|
+
DEPENDENCIES
|
21
|
+
fakefs (>= 0.2.1)
|
22
|
+
rake
|
23
|
+
rcov (>= 0.9.7)
|
24
|
+
rspec (>= 2.1.0)
|
data/README.textile
CHANGED
@@ -26,6 +26,14 @@ As a gem:
|
|
26
26
|
|
27
27
|
Please remember that when used as a gem, Inploy should be available in the deploy servers.
|
28
28
|
|
29
|
+
h3. Rails 2.3.x note
|
30
|
+
|
31
|
+
When using rails 2.3.x, you should include the follow line into you Rakefile:
|
32
|
+
|
33
|
+
<pre><code>##### Rakefile
|
34
|
+
load "tasks/inploy.rake"
|
35
|
+
</code></pre>
|
36
|
+
|
29
37
|
h2. USAGE
|
30
38
|
|
31
39
|
When using Inploy with Rake, there are five tasks:
|
data/Rakefile
CHANGED
@@ -2,11 +2,11 @@ require 'rubygems'
|
|
2
2
|
require 'rubygems/specification'
|
3
3
|
require 'rake'
|
4
4
|
require 'rake/gempackagetask'
|
5
|
-
require '
|
5
|
+
require 'rspec/core/rake_task'
|
6
6
|
|
7
7
|
GEM = "inploy"
|
8
|
-
GEM_VERSION = "1.
|
9
|
-
SUMMARY = "Rails deployment made easy"
|
8
|
+
GEM_VERSION = "1.8"
|
9
|
+
SUMMARY = "Rails and Sinatra deployment made easy"
|
10
10
|
AUTHOR = "Diego Carrion"
|
11
11
|
EMAIL = "dc.rec1@gmail.com"
|
12
12
|
HOMEPAGE = "http://www.diegocarrion.com"
|
@@ -26,9 +26,8 @@ spec = Gem::Specification.new do |s|
|
|
26
26
|
s.rubyforge_project = GEM # GitHub bug, gem isn't being build when this miss
|
27
27
|
end
|
28
28
|
|
29
|
-
|
30
|
-
t.
|
31
|
-
t.spec_opts = %w(-fp --color)
|
29
|
+
RSpec::Core::RakeTask.new :spec do |t|
|
30
|
+
t.rspec_opts = %w(-fp --color)
|
32
31
|
end
|
33
32
|
|
34
33
|
Rake::GemPackageTask.new(spec) do |pkg|
|
@@ -48,8 +47,7 @@ task :make_spec do
|
|
48
47
|
end
|
49
48
|
|
50
49
|
desc "Run all examples with RCov"
|
51
|
-
|
52
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
50
|
+
RSpec::Core::RakeTask.new :spec do |t|
|
53
51
|
t.rcov = true
|
54
52
|
t.rcov_opts = ['--no-html', '-T', '--exclude', 'spec']
|
55
53
|
end
|
data/lib/inploy/deploy.rb
CHANGED
data/lib/inploy/dsl.rb
CHANGED
data/lib/inploy/helper.rb
CHANGED
@@ -45,9 +45,9 @@ module Inploy
|
|
45
45
|
command = []
|
46
46
|
command << "cd #{application_path}"
|
47
47
|
command << "git reset --hard"
|
48
|
-
command << "git clean -f -d"
|
48
|
+
command << "git clean -f -d -e public/system" # Keeps paperclip uploaded files
|
49
49
|
command << "git submodule update --init"
|
50
|
-
command << "bundle install --deployment"
|
50
|
+
command << "bundle install --deployment" unless skip_step?('bundle_install')
|
51
51
|
remote_run command.join(' && ')
|
52
52
|
end
|
53
53
|
|
data/lib/tasks/inploy.rake
CHANGED
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 1.7.2
|
8
|
+
- 8
|
9
|
+
version: "1.8"
|
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-
|
17
|
+
date: 2010-12-14 00:00:00 -02:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|
@@ -39,9 +38,12 @@ files:
|
|
39
38
|
- lib/inploy/templates/locaweb.rb
|
40
39
|
- lib/inploy/templates/rails3.rb
|
41
40
|
- lib/inploy/templates/rails3_push.rb
|
41
|
+
- lib/inploy/templates/sinatra.rb
|
42
42
|
- lib/inploy.rb
|
43
43
|
- lib/tasks/inploy.rake
|
44
44
|
- bin/inploy
|
45
|
+
- Gemfile
|
46
|
+
- Gemfile.lock
|
45
47
|
- Rakefile
|
46
48
|
- README.textile
|
47
49
|
has_rdoc: true
|
@@ -77,6 +79,6 @@ rubyforge_project: inploy
|
|
77
79
|
rubygems_version: 1.3.7
|
78
80
|
signing_key:
|
79
81
|
specification_version: 3
|
80
|
-
summary: Rails deployment made easy
|
82
|
+
summary: Rails and Sinatra deployment made easy
|
81
83
|
test_files: []
|
82
84
|
|