Sha256: 666a21b5e9acb20bfda7c08d175d7719783b980cee6e7ea99589eb451257cc8f

Contents?: true

Size: 231 Bytes

Versions: 11

Compression:

Stored size: 231 Bytes

Contents

module Vx
  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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vx-router-0.2.0.pre38 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre37 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre36 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre35 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre34 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre33 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre32 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre31 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre30 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre29 lib/vx/router/helper/trace_sh_command.rb
vx-router-0.2.0.pre28 lib/vx/router/helper/trace_sh_command.rb