Sha256: 8865138536c001eef4af14a7b1046f948162308378db999d848d7c1032fa3853
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 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 @config.fetch(:files_via, :remote).to_sym != :local ? :remote : :local end end Capistrano.plugin :files, CapistranoExtensions::Files
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joekhoobyar-capistrano-extensions-0.0.1 | lib/capistrano_extensions/files.rb |
joekhoobyar-capistrano-extensions-0.0.2 | lib/capistrano_extensions/files.rb |