inploy 1.7.2 → 1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source :rubygems
2
+
3
+ gem 'rake'
4
+ gem 'rspec', '>= 2.1.0'
5
+ gem 'rcov', '>= 0.9.7'
6
+ gem 'fakefs', '>= 0.2.1'
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 'spec/rake/spectask'
5
+ require 'rspec/core/rake_task'
6
6
 
7
7
  GEM = "inploy"
8
- GEM_VERSION = "1.7.2"
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
- Spec::Rake::SpecTask.new do |t|
30
- t.spec_files = FileList['spec/**/*_spec.rb']
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
- Spec::Rake::SpecTask.new('rcov') do |t|
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
@@ -45,7 +45,7 @@ module Inploy
45
45
  end
46
46
 
47
47
  def local_setup
48
- create_folders 'tmp/pids', 'db'
48
+ create_folders 'public', 'tmp/pids', 'db'
49
49
  copy_sample_files
50
50
  rake "db:create RAILS_ENV=#{environment}"
51
51
  run "./init.sh" if file_exists?("init.sh")
data/lib/inploy/dsl.rb CHANGED
@@ -74,7 +74,7 @@ module Inploy
74
74
  end
75
75
 
76
76
  def login_shell_wrap(cmd)
77
- login_shell ? "\"sh -l -c '#{cmd}'\"" : "'#{cmd}'"
77
+ login_shell ? "\"bash -l -c '#{cmd}'\"" : "'#{cmd}'"
78
78
  end
79
79
 
80
80
  def secure_copy(src, dest)
data/lib/inploy/helper.rb CHANGED
@@ -61,7 +61,7 @@ module Inploy
61
61
  end
62
62
 
63
63
  def bundle_install
64
- run bundle_cmd
64
+ run bundle_cmd unless skip_step?('bundle_install')
65
65
  end
66
66
 
67
67
  def install_gems
@@ -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
 
@@ -0,0 +1,6 @@
1
+ module Inploy
2
+ module Templates
3
+ module Sinatra
4
+ end
5
+ end
6
+ end
@@ -43,5 +43,5 @@ end
43
43
 
44
44
  namespace :in do
45
45
  desc "Alias to Remote Update"
46
- task :up => "remote:update"
46
+ task :up => "inploy:remote:update"
47
47
  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: 15
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 7
9
- - 2
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-10-18 00:00:00 -02:00
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