Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#demo_branchObject



8
9
10
# File 'lib/capistrano/demo.rb', line 8

def demo_branch
  fetch(:demo_branch, `git rev-parse --abbrev-ref HEAD`.strip).downcase
end

#demo_default_dbObject



24
25
26
# File 'lib/capistrano/demo.rb', line 24

def demo_default_db
  format("%s_%s", fetch(:application), fetch(:stage))
end

#demo_hostObject



12
13
14
# File 'lib/capistrano/demo.rb', line 12

def demo_host
  fetch(:demo_host)
end

#demo_pathObject



20
21
22
# File 'lib/capistrano/demo.rb', line 20

def demo_path
  deploy_path.join('demo', demo_branch)
end

#demo_urlObject



16
17
18
# File 'lib/capistrano/demo.rb', line 16

def demo_url
  format("%s.%s", demo_branch, demo_host)
end