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.pre28 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre27 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre26 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre25 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre24 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre23 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre22 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre21 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre20 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre19 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre18 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre17 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre15 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre14 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre13 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre12 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre11 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre10 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre9 lib/evrone/ci/router/helper/trace_sh_command.rb
evrone-ci-router-0.2.0.pre8 lib/evrone/ci/router/helper/trace_sh_command.rb