~charmers/charms/precise/rails/trunk

« back to all changes in this revision

Viewing changes to hooks/chef/cookbooks/rack/definitions/executables.rb

  • Committer: Pavel Pachkovskij
  • Date: 2013-08-21 10:46:29 UTC
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: pavel.pachkovskij@gmail.com-20130821104629-zgrf6efx90tkf0ps
add rvm-installer, move cookbooks to CHARM_DIR

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
define :executables, action: :export do
2
 
  if params[:action] == :export
3
 
    rack_procfile 'rack Procfile' do
4
 
      cwd "#{node[:rack][:root]}/current"
5
 
      user 'deploy'
6
 
      app 'rack'
7
 
      action :export
8
 
    end
9
 
 
10
 
    template "/usr/bin/run" do
11
 
      cookbook 'rack'
12
 
      source 'bin/run.erb'
13
 
      owner 'root'
14
 
      group 'root'
15
 
      mode '0755'
16
 
      helpers(RubyHelpers)
17
 
      action :create
18
 
    end
19
 
 
20
 
    template "/usr/bin/service_restart" do
21
 
      cookbook 'rack'
22
 
      source 'bin/restart.erb'
23
 
      owner 'root'
24
 
      group 'root'
25
 
      mode '0755'
26
 
      action :create
27
 
    end
28
 
  end
29
 
end
 
 
b'\\ No newline at end of file'