Sha256: d6328a1a31c13a1d5390e4deab4ad8236467f867abac478351e4f30d9330ba4c

Contents?: true

Size: 269 Bytes

Versions: 27

Compression:

Stored size: 269 Bytes

Contents

module Evrone
  module CI
    class Router

      module Helper::TraceShCommand
        def trace_sh_command(cmd, options = {})
          trace = options[:trace] || cmd
          "echo #{Shellwords.escape "$ #{trace}"}\n#{cmd}"
        end
      end

    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
evrone-ci-router-0.2.0.pre7 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre6 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre5 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre4 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre3 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre1 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre0 lib/evrone/ci/router/helper/trace_sh_command.rb