Sha256: 4b99e75df434d09a7ee779803316ab7f592e3d89f7aaa6967bb6da81236678fe

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
require 'mustache'

class Passenger < Mustache

  self.path = File.dirname(__FILE__)
  self.template_extension = 'conf'

  def server
    "example.com"
  end

  def deploy_to
    "/var/www/example.com"
  end

  def stage
    "production"
  end

  def timestamp
    Time.now.strftime('%Y%m%d%H%M%S')
  end

end

if $0 == __FILE__
  puts Passenger.to_text
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mustache-0.2.1 examples/passenger.rb
mustache-0.2.0 examples/passenger.rb
mustache-0.1.4 examples/passenger.rb
mustache-0.1.3 examples/passenger.rb
mustache-0.1.2 examples/passenger.rb
mustache-0.1.1 examples/passenger.rb