Top Level Namespace

Defined Under Namespace

Modules: Capistrano, CrowdFavorite

Instance Method Summary collapse

Instance Method Details

#template_dirObject



35
36
37
38
39
40
# File 'bin/capify-wp', line 35

def template_dir()
  t = ["#{File.dirname(File.expand_path(__FILE__))}/../lib/capistrano/templates",
       "#{Gem::Specification.find_by_name("capistrano-wp")}/lib/capisrano/templates"]
  t.each { |dir| return dir if File.readable? dir }
  raise "Paths invalid: #{t}" if not File.readable? t
end