Sha256: 5b81e4016b7c16219cc9864c3859a69d265b25d811d2ff778cf542b1666c90e1

Contents?: true

Size: 257 Bytes

Versions: 6

Compression:

Stored size: 257 Bytes

Contents

class Stencil
  class Cmd
    class <<self
      
      def run(path, cmd=nil)
        if cmd.nil?
          cmd, path = path, cmd
        else
          path = "cd #{path} && "
        end
        `#{[ path, cmd ].compact.join}`
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stencil-0.1.5 lib/stencil/cmd.rb
stencil-0.1.4 lib/stencil/cmd.rb
stencil-0.1.3 lib/stencil/cmd.rb
stencil-0.1.2 lib/stencil/cmd.rb
stencil-0.1.1 lib/stencil/cmd.rb
stencil-0.1.0 lib/stencil/cmd.rb