Sha256: 1e7afb9868316c45c5494bf45b1c5c7b97cb453468d0207788aad8db4856bc50
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
require File.join(File.dirname(__FILE__), %w(files local.rb)) require File.join(File.dirname(__FILE__), %w(files remote.rb)) module CapistranoExtensions::Files class_eval(Local.public_instance_methods(false).map do |m| "def #{m}(*f) send(_via.to_s + '_files').#{m}(*f) end" end.join("\n")) def _via if ! @config.exists?(:files_via) or @config.files_via != :local then :remote else :local end end end Capistrano.plugin :files, CapistranoExtensions::Files
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
joekhoobyar-capistrano-extensions-0.0.0 | lib/capistrano_extensions/files.rb |
joekhoobyar-joekhoobyar-capistrano-extensions-0.0.0 | lib/capistrano_extensions/files.rb |