chap 0.0.5 → 0.0.6

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/lib/chap/runner.rb CHANGED
@@ -12,6 +12,7 @@ module Chap
12
12
  setup
13
13
  strategy.deploy
14
14
  symlink_shared
15
+ rm_rvmrc
15
16
  hook(:deploy)
16
17
  symlink_current
17
18
  hook(:restart)
@@ -71,6 +72,13 @@ module Chap
71
72
  log "Current symlink updated".colorize(:green)
72
73
  end
73
74
 
75
+ def rm_rvmrc
76
+ %w[.rvmrc .ruby-version].each do |file|
77
+ path = "#{release_path}/#{file}"
78
+ run "rm -f #{path}" if File.exist?(path)
79
+ end
80
+ end
81
+
74
82
  def cleanup
75
83
  log "Cleaning up".colorize(:green)
76
84
  remove_old_releases
data/lib/chap/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chap
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- rm_rvmrc
4
-
5
3
  log "cd #{release_path} && bundle"
6
4
  run "cd #{release_path} && echo bundle"
7
5
  run "cd #{release_path} && echo 'chap deploy hook' > deploy.txt"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: