Sha256: 392ebf77fd7b5e3dcc3392d97fccb489a5ae5b55b93a0c08233ba3b699d4faac
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
module Mina module Helpers module Internal def deploy_script yield erb Mina.root_path(fetch(:deploy_script)) end def erb(file, b = binding) require 'erb' erb = ERB.new(File.read(file)) erb.result b end def echo_cmd(code, ignore_verbose = false) if Mina::Configuration.instance.fetch(:verbose) && !ignore_verbose "echo #{Shellwords.escape('$ ' + code)} &&\n#{code}" else code end end def indent(count, str) str.gsub(/^/, ' ' * count) end end end end extend Mina::Helpers::Internal
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mina-1.0.0.beta1 | lib/mina/helpers/internal.rb |