lib/cloud-crowd.rb
# The standard RestClient options for the central server talking to nodes,
# as well as the other way around. There's a timeout of 5 seconds to open
# a connection, and a timeout of 30 to finish reading it.
The standard RestClient options for the central server talking to nodes,
as well as the other way around. There's a timeout of 5 seconds to open
a connection, and a timeout of 30 to finish reading it.
The standard RestClient options for the central server talking to nodes as well as the other way around . There ' s a timeout of 5 seconds to open a connection and a timeout of 30 to finish reading it .
def client_options
      return @client_options if @client_options
      @client_options = {:timeout => 30, :open_timeout => 5}
      if CloudCrowd.config[:http_authentication]
        @client_options[:user]      = CloudCrowd.config[:login]
        @client_options[:password]  = CloudCrowd.config[:password]
      end
      @client_options
    end
def client_options return @client_options if @client_options @client_options = { :timeout => 30 , :open_timeout => 5 } if CloudCrowd . config [ :http_authentication ] @client_options [ :user ] = CloudCrowd . config [ :login ] @client_options [ :password ] = CloudCrowd . config [ :password ] end @client_options end
The standard RestClient options for the central server talking to nodes,
as well as the other way around.
The standard RestClient options for the central server talking to nodes as well as the other way around .