jackdempsey (owner)

Revisions

gist: 88829 Download_button fork
public
Public Clone URL: git://gist.github.com/88829.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
+ # Helper to give the name of the app being built
+ #
+ # ==== Example
+ #
+ # file("#{app_name}_vhost.conf") do
+ # %{
+ # <VirtualHost *:80>
+ # ServerName #{app_name}.localhost.com
+ # DocumentRoot /Users/username/#{app_name}/public
+ # </VirtualHost>
+ # }
+ # end
+ #
+ def app_name
+ File.basename(root)
+ end
+