lib/rye.rb in rye-0.7.6 vs lib/rye.rb in rye-0.8.0

- old
+ new

@@ -1,10 +1,6 @@ -# Temporary fix before Highline 1.5.1 is release. This fixes -# a the issue with Ruby 1.9 that causes the prompts to hang. -$:.unshift File.join(File.dirname(__FILE__), '..', 'vendor', 'highline-1.5.1', 'lib') - require 'logger' require 'thread' require 'base64' require 'net/ssh' require 'net/scp' @@ -45,11 +41,11 @@ #++ module Rye extend self unless defined?(SYSINFO) - VERSION = 0.7.freeze + VERSION = "0.8.0".freeze SYSINFO = SysInfo.new.freeze end @@agent_env = Hash.new # holds ssh-agent env vars @@mutex = Mutex.new # for synchronizing threads @@ -203,10 +199,11 @@ # is one argument:. i.e. <tt>['-l', 'some/path']</tt> # # NOTE: shell is a bit paranoid so it escapes every argument. This means # you can only use literal values. That means no asterisks too. # - # Returns a Rye::Rap object containing the + # Returns a Rye::Rap object. + # def shell(cmd, *args) args = args.flatten.compact cmd = cmd.to_s if cmd.is_a?(Symbol) # TODO: allow stdin to be sent to the cmd tf = Tempfile.new(cmd) \ No newline at end of file