lib/cape/capistrano.rb in cape-1.2.0 vs lib/cape/capistrano.rb in cape-1.3.0

- old
+ new

@@ -108,9 +108,12 @@ else arguments = "[#{arguments.join ','}]" end env_hash = {} env_block.call(env_hash) if env_block + env_hash.reject! do |var_name, var_value| + var_name.nil? || var_value.nil? + end env_strings = env_hash.collect do |var_name, var_value| "#{var_name}=#{var_value.inspect}" end env = env_strings.empty? ? nil : (' ' + env_strings.join(' ')) command = "cd #{context.current_path} && " +