Sha256: e4e88a380154aad06caa3f2cf2849139f48568e0da658c9fe350fd7d33eae37f

Contents?: true

Size: 194 Bytes

Versions: 15

Compression:

Stored size: 194 Bytes

Contents

def template(from, to)
  tmpl = File.read(File.expand_path("../templates/#{from}", __FILE__))
  erb = ERB.new(tmpl).result(binding)
  execute :touch, "#{to}"
  upload! StringIO.new(erb), to
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
capistrano-devops-0.0.15 lib/capistrano/devops/base.rb
capistrano-devops-0.0.14 lib/capistrano/devops/base.rb
capistrano-devops-0.0.13 lib/capistrano/devops/base.rb
capistrano-devops-0.0.12 lib/capistrano/devops/base.rb
capistrano-devops-0.0.11 lib/capistrano/devops/base.rb
capistrano-devops-0.0.10 lib/capistrano/devops/base.rb
capistrano-devops-0.0.9 lib/capistrano/devops/base.rb
capistrano-devops-0.0.8 lib/capistrano/devops/base.rb
capistrano-devops-0.0.7 lib/capistrano/devops/base.rb
capistrano-devops-0.0.6 lib/capistrano/devops/base.rb
capistrano-devops-0.0.5 lib/capistrano/devops/base.rb
capistrano-devops-0.0.4 lib/capistrano/devops/base.rb
capistrano-devops-0.0.3 lib/capistrano/devops/base.rb
capistrano-devops-0.0.2 lib/capistrano/devops/base.rb
capistrano-devops-0.0.1 lib/capistrano/devops/base.rb