Sha256: 32967f17e55d786fb16c035c17c2171227cf44bd1fea6e2ab444b666d14867cd

Contents?: true

Size: 410 Bytes

Versions: 34

Compression:

Stored size: 410 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

34 entries across 34 versions & 4 rubygems

Version Path
mustache-0.99.8 test/fixtures/passenger.rb
mustache-0.99.7 test/fixtures/passenger.rb
mustache-0.99.6 test/fixtures/passenger.rb
mustache-0.99.5 test/fixtures/passenger.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/fixtures/passenger.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/mustache-0.99.4/test/fixtures/passenger.rb
mustache-bibanon-0.99.5 test/fixtures/passenger.rb
mustache-0.99.4 test/fixtures/passenger.rb
mustache-0.99.3 test/fixtures/passenger.rb
mustache-0.99.2 test/fixtures/passenger.rb
mustache-0.99.1 test/fixtures/passenger.rb
mustache-0.99.0 test/fixtures/passenger.rb
mustache-0.98.0 test/fixtures/passenger.rb
mustache-0.13.0 test/fixtures/passenger.rb
mustache-0.12.1 test/fixtures/passenger.rb
mustache-0.12.0 test/fixtures/passenger.rb
angry_mob_common_targets-0.1.0 vendor/mustache/test/fixtures/passenger.rb
mustache-0.11.2 test/fixtures/passenger.rb
mustache-0.11.1 test/fixtures/passenger.rb
mustache-0.11.0 test/fixtures/passenger.rb