Module: Inploy::Templates::Rails3Push

Defined in:
lib/inploy/templates/rails3_push.rb

Instance Method Summary collapse

Instance Method Details

#install_gemsObject



32
33
# File 'lib/inploy/templates/rails3_push.rb', line 32

def install_gems
end

#remote_setupObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/inploy/templates/rails3_push.rb', line 5

def remote_setup
  command = []
  command << "mkdir -p #{application_path}"
  command << "cd #{application_path}"
  command << "git init"
  command << "sed -i'' -e 's/master/#{branch}/' .git/HEAD" unless branch == 'master'
  command << "git config --bool receive.denyNonFastForwards false"
  command << "git config receive.denyCurrentBranch ignore"
  remote_run command.join(' && ')

  push_code

  command = []
  command << "cd #{application_path}"
  command << "rake inploy:local:setup RAILS_ENV=#{environment} environment=#{environment}#{skip_steps_cmd}"
  remote_run command.join(' && ')
end

#remote_updateObject



23
24
25
26
27
28
29
30
# File 'lib/inploy/templates/rails3_push.rb', line 23

def remote_update
  push_code

  command = []
  command << "cd #{application_path}"
  command << "rake inploy:local:update RAILS_ENV=#{environment} environment=#{environment}#{skip_steps_cmd}"
  remote_run command.join(' && ')
end

#update_codeObject



35
36
# File 'lib/inploy/templates/rails3_push.rb', line 35

def update_code
end