baptize 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTg1ZmMwMjhjMjhiZjQ0NGNjZWYwMTQ5MmU2NzdhYzgyZjMxMDNlYg==
4
+ YTIxNWMxNjY2YTA5MDQxZjZiNTk0ZGMyMzc4ZDlkYWMzMmVlY2YxNg==
5
5
  data.tar.gz: !binary |-
6
- MmQzNmY4NzZlNTM2NWE5NWI4MjIzMTkyYzZjYmExNWMxZDlkMDZjOA==
6
+ NzA2YWVhODJlNzBkZGYwNDIxZmYwM2FhNjg2ZDgwMzMyZWE4MGI3Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWI3Njc5ZDY2NDgyNmE2MzRmMGQ4NzEwMDk1ZGZlOTFiOGRkNDdiNjVhYWFl
10
- YTgyY2IxZjU0YWU2NDdhM2ZlOTllNGRlMDg1Yzc3YWU5NGUxZTY3YzZmYjZi
11
- ZDU0ZDVmYzYwOTRlMzg4NjIyZmRhZGY0NjM1NzBkMmMyODMwMTU=
9
+ MjA0ZTUyY2E4ZDZlMjZhZDM2M2VlOGExYTBiY2VhMTE5NzEzYTQwNmEzOGRj
10
+ OGNhYzJkOTcwNjIxNjU2NDNiNmZjNWJkMjRiYzEyMTA0YTZiNzBkYTQyZjMz
11
+ M2RjNzliOGUyMjFjOGMxYTViMDc0ZDMxYzRmNGMxNjU0OTBkNWE=
12
12
  data.tar.gz: !binary |-
13
- MjdiY2E5NmVmMWYzNzcxMmNhZWVhMzk0M2QwNmVmZDViZTc3NTJhYmU2MDRj
14
- N2VjN2UyMjQ0MjdlNWE0YTgwMWM5MWEyNGJhNjUzZTllZDUxMjU3MjNjYWVi
15
- ZGZlMzdiYjg5OTc5YjVmMjc2OWNlZDQ2NzJkZGMyZGJkNmRmYmQ=
13
+ OTU0ZDg5YzdhMTI4OGRlOWRiZDdhYzlhMWE4Y2U1NDY1MmYyMDJmMDI0ZWRl
14
+ ZjA0MjU4NzFhN2M1OGI3NzYyYTM2Nzg5Yzc1NmU5ODljZTBjYTFlYWMzNTAy
15
+ YWVmZGNmMjFmYzI3YmQ1ZGEyMDQxOTkyMmYwZGY2MjJiNGQ5ZWI=
@@ -27,7 +27,7 @@ module Capistrano
27
27
 
28
28
  # Runs a rake command remotely
29
29
  def remote_rake(rake_command, options = {})
30
- options = {:bundle_cmd => fetch(:bundle_cmd, "bundle"), :current_path => current_path, :rails_env => rails_env, :env => {}}.merge(options)
30
+ options = {:bundle_cmd => fetch(:bundle_cmd, "bundle"), :current_path => current_path, :rails_env => rails_env, :env => {}, :pty => false}.merge(options)
31
31
  command = ""
32
32
  command << "cd #{options[:current_path]} && " if options[:current_path]
33
33
  command << "RAILS_ENV=#{options[:rails_env]} " if options[:rails_env]
@@ -39,7 +39,7 @@ module Capistrano
39
39
  else
40
40
  command << "rake #{rake_command}"
41
41
  end
42
- options[:norun] ? command : run(command)
42
+ options[:norun] ? command : run(command, :pty => options[:pty])
43
43
  end
44
44
 
45
45
  # logs the command then executes it locally.
@@ -68,7 +68,8 @@ module Capistrano
68
68
  roles.each do |name,servers|
69
69
  servers.each do |host|
70
70
  if count == num
71
- command = "ssh -i #{ssh_options[:keys]} #{user}@#{host}"
71
+ change_dir = exists?(:deploy_to) ? ("cd " + fetch(:deploy_to) + "/current ; ") : ""
72
+ command = "ssh -i #{ssh_options[:keys]} #{user}@#{host} -t '#{change_dir}sudo su'"
72
73
  puts command
73
74
  exec command
74
75
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baptize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Troels Knak-Nielsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-11 00:00:00.000000000 Z
11
+ date: 2013-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 2.15.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 2.15.5
27
27
  description: Baptize is an extension for Capistrano, that allows for server provisioning
28
28
  email:
29
29
  - troels@knak-nielsen.dk