lib/ropenstack/compute.rb
def create_server(name, image, flavor, networks = nil, keypair = nil, security_group = nil, metadata = nil)
      data = { 
        "server" => { 
          "name" => name,
          "imageRef" => image,
          "flavorRef" => flavor,
        }   
      }
      unless networks.nil?
        data["server"]["networks"] = networks 
      end
      unless keypair.nil?
        data["server"]["key_name"] = keypair
      end
      unless security_group.nil?
        data["server"]["security_group"] = security_group 
      end
      return post_request(address("/servers"), data, @token)
    end
def create_server(name, image, flavor, networks = nil, keypair = nil, security_group = nil, metadata = nil)
      data = { 
        "server" => { 
          "name" => name,
          "imageRef" => image,
          "flavorRef" => flavor,
        }   
      }
      unless networks.nil?
        data["server"]["networks"] = networks 
      end
      unless keypair.nil?
        data["server"]["key_name"] = keypair
      end
      unless security_group.nil?
        data["server"]["security_group"] = security_group 
      end
      return post_request(address("/servers"), data, @token)
    end
Creates a server on OpenStack.