Sha256: 03d740a01fd33f4997247cfa6460783cb823d2780b8aac74bce470a56b8e9dde

Contents?: true

Size: 356 Bytes

Versions: 9

Compression:

Stored size: 356 Bytes

Contents

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

9 entries across 9 versions & 2 rubygems

Version Path
zine_brewer-1.5.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/passenger.rb
zine_brewer-1.3.0 vendor/bundle/ruby/2.7.0/gems/mustache-1.1.1/test/fixtures/passenger.rb
mustache-1.1.1 test/fixtures/passenger.rb
mustache-1.1.0 test/fixtures/passenger.rb
mustache-1.0.5 test/fixtures/passenger.rb
mustache-1.0.3 test/fixtures/passenger.rb
mustache-1.0.2 test/fixtures/passenger.rb
mustache-1.0.1 test/fixtures/passenger.rb
mustache-1.0.0 test/fixtures/passenger.rb