Sha256: 57a5f2af5a5c1a4dcd00cc3b42ab32d36fddd1391ac544260d46b8eab0992a01

Contents?: true

Size: 491 Bytes

Versions: 19

Compression:

Stored size: 491 Bytes

Contents

file "#{project_name}.local.vhost.conf" do
  %{
<VirtualHost *:80>
ServerName #{project_name}.local
DocumentRoot "#{root}/public"
RackEnv development
<directory "#{root}/public">
  Order allow,deny
  Allow from all
</directory>
</VirtualHost>
}.strip
end
default_to = "/etc/apache2/passenger_pane_vhosts"
answer = ask "Where should we write out vhost config: [#{default_to} is default]"
filename = answer.empty? ? default_to : answer
sudo "mv ./#{project_name}.local.vhost.conf #{filename}"

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
whtt-eric-beet-0.6.11 lib/beet/recipes/passenger/vhost.rb
whtt-eric-beet-0.6.10 lib/beet/recipes/passenger/vhost.rb
beet-0.6.9 lib/beet/recipes/passenger/vhost.rb
beet-0.6.8 lib/beet/recipes/passenger/vhost.rb
beet-0.6.7 lib/beet/recipes/passenger/vhost.rb
beet-0.6.6 lib/beet/recipes/passenger/vhost.rb
beet-0.6.5 lib/beet/recipes/passenger/vhost.rb
beet-0.6.4 lib/beet/recipes/passenger/vhost.rb
beet-0.6.3 lib/beet/recipes/passenger/vhost.rb
beet-0.6.1 lib/beet/recipes/passenger/vhost.rb
beet-0.6.0 lib/beet/recipes/passenger/vhost.rb
beet-0.5.0 lib/beet/recipes/passenger/vhost.rb
beet-0.4.6 lib/beet/recipes/passenger/vhost.rb
beet-0.4.5 lib/beet/recipes/passenger/vhost.rb
beet-0.4.4 lib/beet/recipes/passenger/vhost.rb
beet-0.4.3 lib/beet/recipes/passenger/vhost.rb
beet-0.4.2 lib/beet/recipes/passenger/vhost.rb
beet-0.4.1 lib/beet/recipes/passenger/vhost.rb
beet-0.4.0 lib/beet/recipes/passenger/vhost.rb